MCPcopy
hub / github.com/prisma/prisma / warnOnce

Function warnOnce

packages/internals/src/warnOnce.ts:5–10  ·  view source on GitHub ↗
(key: string, message: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

3const alreadyWarned = new Set()
4
5export const warnOnce = (key: string, message: string, ...args: unknown[]) => {
6 if (!alreadyWarned.has(key)) {
7 alreadyWarned.add(key)
8 warn(message, ...args)
9 }
10}

Callers

nothing calls this directly

Calls 3

warnFunction · 0.90
hasMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected