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

Function assert

src/Support.ts:44–48  ·  view source on GitHub ↗
(condition: boolean, message: string = "Assertion failed")

Source from the content-addressed store, hash-verified

42}
43
44export function assert(condition: boolean, message: string = "Assertion failed"): void {
45 if (!condition) {
46 throw Error(message);
47 }
48}
49
50export function panic(message: string): never {
51 throw Error(message);

Callers 15

utf32ConcatMapFunction · 0.90
startIntervalFunction · 0.90
commitIntervalFunction · 0.90
firstUpperWordStyleFunction · 0.90
styleWordFunction · 0.90
combineWordsFunction · 0.90
makeEnumMethod · 0.90
makeClassMethod · 0.90
TypeGraphClass · 0.90
topLevelsMethod · 0.90
TargetLanguage.tsFile · 0.90
TypeRefClass · 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…