MCPcopy
hub / github.com/prisma/prisma / buildDMMFList

Function buildDMMFList

packages/client/src/runtime/core/runtimeDataModel.ts:25–27  ·  view source on GitHub ↗
(map: Record<string, T>)

Source from the content-addressed store, hash-verified

23}
24
25function buildDMMFList<T>(map: Record<string, T>): Array<T & { name: string }> {
26 return Object.entries(map).map(([name, props]) => ({ name, ...props }))
27}

Callers 1

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected