MCPcopy Index your code
hub / github.com/glideapps/quicktype / assertNever

Function assertNever

src/Support.ts:40–42  ·  view source on GitHub ↗
(x: never)

Source from the content-addressed store, hash-verified

38}
39
40export function assertNever(x: never): never {
41 throw new Error("Unexpected object: " + x);
42}
43
44export function assert(condition: boolean, message: string = "Assertion failed"): void {
45 if (!condition) {

Callers 7

RunClass · 0.90
TypeInferenceClass · 0.90
lookupRefFunction · 0.90
sourceLineLengthFunction · 0.90
serializeToStringArrayFunction · 0.90
GQLQueryClass · 0.90
cppNameStyleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…