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

Method set

packages/core/src/project/project.ts:241–247  ·  view source on GitHub ↗
(key: string, value: unknown)

Source from the content-addressed store, hash-verified

239 set<T extends keyof ProjectSchema>(key: T, value: ProjectSchema[T]): void
240 set(key: string, value: unknown): void
241 set(key: string, value: unknown): void {
242 if (key === 'config') {
243 this._config = value as Record<string, any>
244 }
245
246 Object.assign(this.data, { [key]: value })
247 }
248
249 /**
250 * get extra data, available for plugins

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected