UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

13 lines (12 loc) 299 B
/** @internal */ export function defineWarnOnce() { let warned = false // eslint-disable-next-line @typescript-eslint/no-explicit-any return (...args: any[]): void => { if (!warned) { // eslint-disable-next-line no-console console.warn(...args) warned = true } } }