MCPcopy Create free account
hub / github.com/pingdotgg/t3code / constructor

Method constructor

apps/web/src/contextMenuFallback.test.ts:10–15  ·  view source on GitHub ↗
(
    readonly type: string,
    init: Record<string, unknown> = {},
  )

Source from the content-addressed store, hash-verified

8 defaultPrevented = false;
9
10 constructor(
11 readonly type: string,
12 init: Record<string, unknown> = {},
13 ) {
14 Object.assign(this, init);
15 }
16
17 preventDefault() {
18 this.defaultPrevented = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected