MCPcopy
hub / github.com/prisma/prisma / write

Method write

packages/ts-builders/src/TypeDeclaration.ts:31–40  ·  view source on GitHub ↗
(writer: Writer)

Source from the content-addressed store, hash-verified

29 }
30
31 write(writer: Writer): void {
32 if (this.docComment) {
33 writer.write(this.docComment)
34 }
35 writer.write('type ').write(this.name)
36 if (this.genericParameters.length > 0) {
37 writer.write('<').writeJoined(', ', this.genericParameters).write('>')
38 }
39 writer.write(' = ').write(this.type)
40 }
41}
42
43export function typeDeclaration<InnerType extends TypeBuilder = TypeBuilder>(name: string, type: InnerType) {

Callers

nothing calls this directly

Calls 2

writeJoinedMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected