MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / assert

Function assert

packages/shared/src/utils.ts:12–16  ·  view source on GitHub ↗
(condition: any, message?: string, cause?: any)

Source from the content-addressed store, hash-verified

10}
11
12export function assert(condition: any, message?: string, cause?: any): asserts condition {
13 if (!condition) {
14 throw Error(message ?? 'Assertion failed', {cause})
15 }
16}
17
18export function msg<T, K extends keyof T>(kind: K, data: T[K]): UnionMember<T, K> {
19 return {kind, data}

Callers 7

setLocatorOptionsFunction · 0.90
setElementInterfaceFunction · 0.90
setClientVersionFunction · 0.90
setSolidVersionFunction · 0.90
createDebuggerFunction · 0.90
get_assert_tab_idFunction · 0.90
on_messageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…