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

Method constructor

packages/core/src/engine/editor.ts:50–59  ·  view source on GitHub ↗
(config?: EditorConfig)

Source from the content-addressed store, hash-verified

48 >()
49
50 constructor(config?: EditorConfig) {
51 super()
52 // set global emitter maxListeners
53 this.setMaxListeners(200)
54 this.eventBus = new EventBus(this)
55
56 if (config) {
57 this.init(config)
58 }
59 }
60
61 get<T = undefined, KeyOrType extends EditorValueKey = any>(
62 keyOrType: KeyOrType,

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
setMaxListenersMethod · 0.80

Tested by

no test coverage detected