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

Function isInjectable

packages/core/src/Core/DI/Decorators.ts:194–197  ·  view source on GitHub ↗
(target: Constructor)

Source from the content-addressed store, hash-verified

192 * @returns 是否可注入
193 */
194export function isInjectable(target: Constructor): boolean {
195 const metadata = injectableMetadata.get(target);
196 return metadata?.injectable ?? false;
197}
198
199/**
200 * 获取类的依赖注入元数据

Callers 3

addEntityProcessorMethod · 0.90
DI.test.tsFile · 0.90
registerInjectableFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected