MCPcopy Create free account
hub / github.com/esengine/esengine / Injectable

Function Injectable

packages/core/src/Core/DI/Decorators.ts:78–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 * ```
77 */
78export function Injectable(): ClassDecorator {
79 return function (target: Function): void {
80 const existing = injectableMetadata.get(target as Constructor);
81
82 injectableMetadata.set(target as Constructor, {
83 injectable: true,
84 dependencies: [],
85 ...(existing?.properties && { properties: existing.properties })
86 });
87 } as ClassDecorator;
88}
89
90/**
91 * @Updatable() 装饰器

Callers 15

DebugManager.tsFile · 0.90
DebugPlugin.tsFile · 0.90
TestSystemClass · 0.90
SimpleServiceClass · 0.90
DependentServiceClass · 0.90
MovementSystemClass · 0.90
CollisionSystemClass · 0.90
PhysicsSystemClass · 0.90
SystemAClass · 0.90
SystemBClass · 0.90

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected