@nx/react
Version:
13 lines (12 loc) • 776 B
TypeScript
import { Tree } from '@nx/devkit';
import type * as ts from 'typescript';
export interface CreateComponentStoriesFileSchema {
project: string;
componentPath: string;
interactionTests?: boolean;
skipFormat?: boolean;
}
export declare function createComponentStoriesFile(host: Tree, { project, componentPath, interactionTests }: CreateComponentStoriesFileSchema): void;
export declare function findPropsAndGenerateFile(host: Tree, sourceFile: ts.SourceFile, cmpDeclaration: ts.Node, componentDirectory: string, name: string, interactionTests: boolean, isPlainJs: boolean, fromNodeArray?: boolean): void;
export declare function componentStoryGenerator(host: Tree, schema: CreateComponentStoriesFileSchema): Promise<void>;
export default componentStoryGenerator;