/** * Helpers for working with the Prisma DMMF data type */ import { DMMF } from '@prisma/generator-helper' export function getTypeName(type: string | DMMF.SchemaEnum | DMMF.InputType | DMMF.OutputType): string { if (typeof type === 'string') { return type } return type.name }