MCPcopy
hub / github.com/desktop/desktop / assertNever

Function assertNever

app/src/lib/fatal-error.ts:18–20  ·  view source on GitHub ↗
(x: never, message: string)

Source from the content-addressed store, hash-verified

16 * @param message The message to be used in the runtime exception.
17 */
18export function assertNever(x: never, message: string): never {
19 throw new Error(message)
20}
21
22/**
23 * Unwrap a value that, according to the type system, could be null or

Callers 15

runFunction · 0.90
mapStatusFunction · 0.90
parseHunkMethod · 0.90
formatPatchHeaderForFileFunction · 0.90
formatPatchFunction · 0.90
_executeCompareMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected