MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / assertNever

Function assertNever

webapp/_webapp/src/libs/apiclient.ts:13–15  ·  view source on GitHub ↗
(x: never)

Source from the content-addressed store, hash-verified

11
12// Exhaustive type check helper - will cause compile error if a case is not handled
13const assertNever = (x: never): never => {
14 throw new Error("Unexpected api version: " + x);
15};
16
17export type RequestOptions = {
18 ignoreErrorToast?: boolean;

Callers 1

updateBaseURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected