MCPcopy
hub / github.com/partykit/partykit / assert

Function assert

packages/partykit/facade/source.ts:36–40  ·  view source on GitHub ↗
(condition: unknown, msg?: string)

Source from the content-addressed store, hash-verified

34declare const __KV_BINDINGS__: string[];
35
36function assert(condition: unknown, msg?: string): asserts condition {
37 if (!condition) {
38 throw new Error(msg);
39 }
40}
41
42let didWarnAboutDevAnalytics = false;
43const MockAnalyticsDataset: AnalyticsEngineDataset = {

Callers 15

fetchMethod · 0.70
#initializePartyMethod · 0.70
webSocketMessageMethod · 0.70
webSocketCloseMethod · 0.70
webSocketErrorMethod · 0.70
invokeOnCloseMethod · 0.70
invokeOnErrorMethod · 0.70
invokeOnMessageMethod · 0.70
alarmMethod · 0.70
fetchFunction · 0.70
useDevFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected