MCPcopy Create free account
hub / github.com/danielroe/hello-zero-nuxt / must

Function must

server/api/login.get.ts:41–46  ·  view source on GitHub ↗
(val: T)

Source from the content-addressed store, hash-verified

39})
40
41function must<T>(val: T) {
42 if (!val) {
43 throw new Error('Expected value to be defined')
44 }
45 return val
46}

Callers 1

login.get.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected