MCPcopy
hub / github.com/prisma/prisma / buildNullClass

Function buildNullClass

packages/client-generator-js/src/TSClient/common.ts:537–550  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

535})
536
537function buildNullClass(name: string) {
538 const source = `/**
539* Type of \`Prisma.${name}\`.
540*
541* You cannot use other instances of this class. Please use the \`Prisma.${name}\` value.
542*
543* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
544*/
545class ${name} {
546 private ${name}: never
547 private constructor()
548}`
549 return indent(source, TAB_SIZE)
550}
551
552function buildPrismaSkipTs(previewFeatures: string[]) {
553 if (previewFeatures.includes('strictUndefinedChecks')) {

Callers 1

commonCodeTSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected