MCPcopy
hub / github.com/microsoft/vscode-js-debug / assertNever

Function assertNever

src/common/objUtils.ts:22–25  ·  view source on GitHub ↗
(value: never, message: string)

Source from the content-addressed store, hash-verified

20 * Asserts that the value is never. If this function is reached, it throws.
21 */
22export const assertNever = (value: never, message: string): never => {
23 debugger;
24 throw new Error(message.replace('{value}', JSON.stringify(value)));
25};
26
27/**
28 * Filters the object by value.

Callers 3

applyDefaultsFunction · 0.90
appendMethod · 0.90
parseMethod · 0.90

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected