react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
20 lines (19 loc) • 858 B
TypeScript
export declare const sanitize: (string: string) => string;
export declare const toId: (kind: string, name?: string | undefined) => string;
export declare const storyNameFromExport: (key: string) => string;
declare type StoryDescriptor = string[] | RegExp;
export interface IncludeExcludeOptions {
includeStories?: StoryDescriptor;
excludeStories?: StoryDescriptor;
}
export declare function isExportStory(key: string, { includeStories, excludeStories }: IncludeExcludeOptions): boolean | null;
export interface SeparatorOptions {
rootSeparator: string | RegExp;
groupSeparator: string | RegExp;
}
export declare const parseKind: (kind: string, { rootSeparator, groupSeparator }: SeparatorOptions) => {
root: string | null;
groups: string[];
};
export { includeConditionalArg } from './includeConditionalArg';
export * from './story';