MCPcopy
hub / github.com/vercel/next.js / invariant

Function invariant

turbopack/crates/turbopack-node/js/src/child_process/index.ts:220–222  ·  view source on GitHub ↗

* Utility function to ensure all variants of an enum are handled.

(never: never, computeMessage: (arg: any) => string)

Source from the content-addressed store, hash-verified

218 * Utility function to ensure all variants of an enum are handled.
219 */
220function invariant(never: never, computeMessage: (arg: any) => string): never {
221 throw new Error(`Invariant: ${computeMessage(never)}`)
222}

Callers 1

createIpcFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected