make-react-component
Version:
Generate react and react-native components.
32 lines (28 loc) • 477 B
text/typescript
export enum Platform {
WEB = 'WEB',
NATIVE = 'NATIVE'
}
export enum Shape {
FUNCTION = 'FUNCTION',
CLASS = 'CLASS',
MIXED = 'MIXED'
}
export enum Syntax {
JS = 'JS',
TS = 'TS'
}
export enum File {
JS = 'js',
JSX = 'jsx',
TS = 'ts',
TSX = 'tsx'
}
export interface TemplateOption {
alias: string;
description: string;
platform: Platform;
shape: Shape;
syntax: Syntax;
template: string;
fileType: File;
}