MCPcopy Create free account
hub / github.com/denoland/std / assertNever

Function assertNever

assert/unstable_never.ts:97–101  ·  view source on GitHub ↗
(x: never, msg?: string)

Source from the content-addressed store, hash-verified

95 * @throws {AssertionError}
96 */
97export function assertNever(x: never, msg?: string): never {
98 throw new AssertionError(
99 msg ?? `Expect ${format(x)} to be of type never`,
100 );
101}

Callers 2

handleKindFunction · 0.90

Calls 1

formatFunction · 0.90

Tested by

no test coverage detected