Remove top level export of clearDecorators

This commit is contained in:
Jon Rimmer 2018-02-18 08:50:32 +00:00
parent 1ee3e0afc8
commit 246fc20705
4 changed files with 8 additions and 10 deletions

View File

@ -30,5 +30,4 @@ declare module '@storybook/angular' {
export function addDecorator(decorator: any): IApi; export function addDecorator(decorator: any): IApi;
export function configure(loaders: () => NodeRequire, module: NodeModule): void; export function configure(loaders: () => NodeRequire, module: NodeModule): void;
export function getStorybook(): IStoribookSection[]; export function getStorybook(): IStoribookSection[];
export function clearDecorators(): void;
} }

View File

@ -1,10 +1,3 @@
export { export { storiesOf, setAddon, addDecorator, configure, getStorybook } from './preview';
storiesOf,
setAddon,
addDecorator,
configure,
getStorybook,
clearDecorators,
} from './preview';
export { moduleMetadata } from './preview/angular/decorators'; export { moduleMetadata } from './preview/angular/decorators';

View File

@ -1,5 +1,5 @@
import { moduleMetadata } from './decorators'; import { moduleMetadata } from './decorators';
import { addDecorator, storiesOf, clearDecorators, getStorybook } from '@storybook/angular'; import { addDecorator, storiesOf, clearDecorators, getStorybook } from '..';
class MockModule {} class MockModule {}
class MockModuleTwo {} class MockModuleTwo {}

View File

@ -0,0 +1,6 @@
export function storiesOf(kind: string, module: NodeModule): IApi;
export function setAddon(addon: any): void;
export function addDecorator(decorator: any): IApi;
export function configure(loaders: () => NodeRequire, module: NodeModule): void;
export function getStorybook(): IStoribookSection[];
export function clearDecorators(): void;