UNPKG

@vegardit/prisma-generator-nestjs-dto

Version:

Generates DTO and Entity classes from Prisma Schema for NestJS

14 lines (13 loc) 946 B
import type { DMMF } from '@prisma/generator-helper'; export declare const isAnnotatedWith: (instance: DMMF.Field | DMMF.Model, annotation: RegExp) => boolean; export declare const isAnnotatedWithOneOf: (instance: DMMF.Field | DMMF.Model, annotations: RegExp[]) => boolean; export declare const isId: (field: DMMF.Field) => boolean; export declare const isRequired: (field: DMMF.Field) => boolean; export declare const isScalar: (field: DMMF.Field) => boolean; export declare const hasDefaultValue: (field: DMMF.Field) => boolean; export declare const isUnique: (field: DMMF.Field) => boolean; export declare const isRelation: (field: DMMF.Field) => boolean; export declare const isIdWithDefaultValue: (field: DMMF.Field) => boolean; export declare const isReadOnly: (field: DMMF.Field) => boolean; export declare const isUpdatedAt: (field: DMMF.Field) => boolean; export declare const isRequiredWithDefaultValue: (field: DMMF.Field) => boolean;