Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
97
export
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
handleKind
Function · 0.90
unstable_never_test.ts
File · 0.90
Calls
1
format
Function · 0.90
Tested by
no test coverage detected