@arianaprojects/prisma-nestjs-crud-generator
Version:
code generator from Prisma schema
17 lines (16 loc) • 1.58 kB
TypeScript
export declare function ModuleDecoratorGenerator(IMPORTS: string, PROVIDERS: string, CONTROLLERS: string, EXPORTS: string): string;
export declare function classGenerator(name: string, body: string, decorator?: string): string;
export declare function classDefaultGenerator(name: string, body: string, decorator?: string): string;
export declare function moduleGenerator(name: string, IMPORTS: string, PROVIDERS: string, CONTROLLERS: string, EXPORTS: string): string;
export declare function constructorGenerator(param: string, body: string): string;
export declare function fieldGeneratorGeneral(name: any, type: any, decorator: string): string;
export declare function functionGenerator(name: string, param: string, ret: string, body: string): string;
export declare function asyncFunctionGenerator(name: string, param: string, ret: string, body: string): string;
export declare function functionPromiseGenerator(name: string, param: string, retType: string, body: string): string;
export declare function importAsGenerator(NAME: string, MODULE: string): string;
export declare function importGenerator(NAME: string, MODULE: string): string;
export declare function parameterPrivateReadonlyGenerator(name: string, type: string): string;
export declare function parameterPrivateGenerator(name: string, type: string): string;
export declare function parameterGenerator(name: string, type: string): string;
export declare function parameterPipeGenerator(name: string, type: string, pipe: string): string;
export declare function decoratorGenerator(name: string, body: string): string;