typegraphql-prisma-nestjs
Version:
This project is a fork of another with minor changes, created for personal use.
41 lines (40 loc) • 1.48 kB
TypeScript
import { EmitBlockKind } from "./emit-block";
export interface ExternalGeneratorOptions {
emitDMMF?: boolean;
emitTranspiledCode?: boolean;
simpleResolvers?: boolean;
useOriginalMapping?: boolean;
useUncheckedScalarInputs?: boolean;
emitIdAsIDType?: boolean;
emitOnly?: EmitBlockKind[];
emitRedundantTypesInfo?: boolean;
customPrismaImportPath?: string;
customPrismaImportPathIgnoreLevels?: boolean;
useDataloaderForResolveFields?: boolean;
useDataloaderForAllResolveFields?: boolean;
useDataloaderMaxBatchSize?: number;
useDataloaderBatchScheduleFnDelay?: number;
useDataloaderCache?: boolean;
contextPrismaKey?: string;
useSimpleInputs?: boolean;
optionalInputFieldsByDefault?: string[];
omitInputFieldsByDefault?: string[];
omitOutputFieldsByDefault?: string[];
formatGeneratedCode?: boolean | "prettier" | "tsc";
emitIsAbstract?: boolean;
objectTypePrefix?: string;
inputTypePrefix?: string;
enumTypePrefix?: string;
emitActions?: string[];
emitPropertyMethods?: string[];
}
export interface InternalGeneratorOptions {
outputDirPath: string;
prismaClientPath: string;
}
export interface GeneratorOptions extends Omit<ExternalGeneratorOptions, "emitOnly" | "contextPrismaKey">, InternalGeneratorOptions {
blocksToEmit: EmitBlockKind[];
contextPrismaKey: string;
relativePrismaOutputPath: string;
absolutePrismaOutputPath: string | undefined;
}