@nx/react
Version:
31 lines (28 loc) • 765 B
TypeScript
import type { FileExtensionType } from '@nx/devkit/internal';
import { SupportedStyles } from '../../../typings/style';
export interface Schema {
path: string;
name?: string;
style: SupportedStyles;
skipTests?: boolean;
export?: boolean;
classComponent?: boolean;
routing?: boolean;
globalCss?: boolean;
inSourceTests?: boolean;
skipFormat?: boolean;
// Used by Next.js to determine how React should generate the page
isNextPage?: boolean;
}
export interface NormalizedSchema extends Schema {
directory: string;
projectRoot: string;
projectSourceRoot: string;
projectName: string;
fileName: string;
filePath: string;
fileExtension: string;
fileExtensionType: FileExtensionType;
className: string;
hasStyles: boolean;
}