MCPcopy
hub / github.com/prisma/prisma / buildExport

Function buildExport

packages/client-generator-js/src/TSClient/SelectIncludeOmit.ts:109–112  ·  view source on GitHub ↗
(typeName: string, type: ts.TypeBuilder)

Source from the content-addressed store, hash-verified

107}
108
109function buildExport(typeName: string, type: ts.TypeBuilder) {
110 const declaration = ts.typeDeclaration(typeName, type)
111 return ts.moduleExport(declaration.addGenericParameter(extArgsParam))
112}
113
114function getIncludeFields(fields: readonly DMMF.SchemaField[], dmmf: DMMFHelper) {
115 return fields.filter((field) => {

Callers 3

buildIncludeTypeFunction · 0.70
buildOmitTypeFunction · 0.70
buildSelectTypeFunction · 0.70

Calls 1

addGenericParameterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…