MCPcopy
hub / github.com/glideapps/glide-data-grid / assert

Function assert

packages/core/src/common/support.ts:9–12  ·  view source on GitHub ↗
(fact: boolean, message: string = "Assertion failed")

Source from the content-addressed store, hash-verified

7}
8
9export function assert(fact: boolean, message: string = "Assertion failed"): asserts fact {
10 if (fact) return;
11 return panic(message);
12}
13
14export function assertNever(_never: never, msg?: string): never {
15 return panic(msg ?? "Hell froze over");

Callers 8

cells.test.tsxFile · 0.85
GrowingEntryFunction · 0.85
tickFunction · 0.85
DataGridFunction · 0.85
drawGridFunction · 0.85
DataEditorImplFunction · 0.85
pasteToCellFunction · 0.85

Calls 1

panicFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…