MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / constructor

Method constructor

packages/core/src/utils/event.ts:16–25  ·  view source on GitHub ↗
(
    readonly eventBus: EventBus,
    options: EventOptions,
    public workspaceMode = false,
  )

Source from the content-addressed store, hash-verified

14 private readonly options: EventOptions
15
16 constructor(
17 readonly eventBus: EventBus,
18 options: EventOptions,
19 public workspaceMode = false,
20 ) {
21 this.options = options
22 if (!this.options.prefix) {
23 logger.warn('prefix is required while initializing Event')
24 }
25 }
26
27 /**
28 * 监听事件

Callers

nothing calls this directly

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected