@arianaprojects/prisma-nestjs-crud-generator
Version:
code generator from Prisma schema
20 lines (19 loc) • 1.18 kB
TypeScript
import { DMMF } from '@prisma/generator-helper';
import { Options } from 'prettier';
export declare const log: (src: string) => void;
export declare const parseBoolean: (value: unknown) => boolean;
export declare const toArray: <T>(value: T | T[]) => T[];
export declare const writeTSFile: (fullPath: string, content: string, dryRun?: boolean) => void;
export declare const prettierFormat: (content: string) => string;
export declare const prettierFormatFormat: (content: string, options?: Options) => string;
export declare function tsTypes(type: string | any, entity?: boolean): any;
export declare function defaultGenerator(name: string, type: string): string;
export declare function isUrl(f: DMMF.Field): boolean;
export declare function isEmail(f: DMMF.Field): boolean;
export declare function isName(f: DMMF.Field): boolean;
export declare function isCity(f: DMMF.Field): boolean;
export declare function isStreet(f: DMMF.Field): boolean;
export declare function isCountry(f: DMMF.Field): boolean;
export declare function isZipcode(f: DMMF.Field): boolean;
export declare function isMoney(f: DMMF.Field): boolean;
export declare function isDescription(f: DMMF.Field): boolean;