MCPcopy
hub / github.com/prisma/prisma / getMethodJSDoc

Function getMethodJSDoc

packages/client-generator-js/src/TSClient/helpers.ts:23–25  ·  view source on GitHub ↗
(action: DMMF.ModelAction, mapping: DMMF.ModelMapping, model: DMMF.Model)

Source from the content-addressed store, hash-verified

21}
22
23export function getMethodJSDoc(action: DMMF.ModelAction, mapping: DMMF.ModelMapping, model: DMMF.Model): string {
24 return wrapComment(getMethodJSDocBody(action, mapping, model))
25}
26
27export function wrapComment(str: string): string {
28 return `/**\n${str

Callers 1

toTSMethod · 0.90

Calls 2

wrapCommentFunction · 0.70
getMethodJSDocBodyFunction · 0.70

Tested by

no test coverage detected