Skip to content

Commit

Permalink
Merge pull request #5 from wKich/csf-types
Browse files Browse the repository at this point in the history
Add meta types for CSF
  • Loading branch information
shilman authored May 1, 2020
2 parents 3fd17a7 + 44e440d commit d30e471
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 351 deletions.
28 changes: 1 addition & 27 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import startCase from 'lodash/startCase';
import { StoryProperties } from './properties';

export * from './properties';

/**
* Remove punctuation and illegal characters from a story ID.
Expand Down Expand Up @@ -86,27 +83,4 @@ export const parseKind = (kind: string, { rootSeparator, groupSeparator }: Separ
};
};

/**
* csf story metadata attached to the story export function
*/
export interface StoryMetadata {
story?: {
/**
* story name if different from the export name
*/
name?: string;

/**
* optional collection of properties, which values
* will be passed onto the story function
*/
properties?: StoryProperties;

/**
* optional collection of story parameters
*/
parameters?: {
[key: string]: any;
};
};
}
export * from './story';
12 changes: 0 additions & 12 deletions properties.test.ts

This file was deleted.

312 changes: 0 additions & 312 deletions properties.ts

This file was deleted.

Loading

0 comments on commit d30e471

Please sign in to comment.