MCPcopy Index your code
hub / github.com/ether/etherpad / assert

Function assert

src/static/js/Changeset.ts:78–80  ·  view source on GitHub ↗
(b: boolean, msg: string)

Source from the content-addressed store, hash-verified

76 * @type {(b: boolean, msg: string) => asserts b}
77 */
78export const assert: (b: boolean, msg: string) => asserts b = (b: boolean, msg: string): asserts b => {
79 if (!b) error(`Failed assertion: ${msg}`);
80};
81
82
83/**

Callers 15

StringIteratorClass · 0.90
OpAssemblerClass · 0.90
checkRepFunction · 0.70
applyToTextFunction · 0.70
outputMutOpFunction · 0.70
mutateAttributionLinesFunction · 0.70
slicerZipperFuncFunction · 0.70
splitAttributionLinesFunction · 0.70
composeFunction · 0.70
followFunction · 0.70
health.tsFile · 0.50
SessionStore.tsFile · 0.50

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected