Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/meet
/ assertNonNullable
Function
assertNonNullable
app/utils/assertNonNullable.ts:1–6 ·
view source on GitHub ↗
( value: T )
Source
from the content-addressed store, hash-verified
1
export
function
assertNonNullable<T>(
2
value: T
3
): asserts value is NonNullable<T> {
4
if
(value === null) throw
new
Error(`Value was null`)
5
if
(value === undefined) throw
new
Error(`Value was undefined`)
6
}
Callers
1
onConnect
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected