MCPcopy
hub / github.com/graphql/graphql-js / devAssert

Function devAssert

src/jsutils/devAssert.ts:2–6  ·  view source on GitHub ↗
(condition: boolean, message: string)

Source from the content-addressed store, hash-verified

1/** @internal */
2export function devAssert(condition: boolean, message: string): void {
3 if (!condition) {
4 throw new Error(message);
5 }
6}

Callers 6

constructorMethod · 0.90
visitFunction · 0.90
buildClientSchemaFunction · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected