MCPcopy
hub / github.com/nestjs/nest / Injectable

Function Injectable

packages/common/decorators/core/injectable.decorator.ts:43–48  ·  packages/common/decorators/core/injectable.decorator.ts::Injectable
(options?: InjectableOptions)

Source from the content-addressed store, hash-verified

41 * @publicApi
42 */
43export function Injectable(options?: InjectableOptions): ClassDecorator {
44 return (target: object) => {
45 Reflect.defineMetadata(INJECTABLE_WATERMARK, true, target);
46 Reflect.defineMetadata(SCOPE_OPTIONS_METADATA, options, target);
47 };
48}
49
50/**
51 * @publicApi

Callers 15

TestComponentClass · 0.90
ReqScopedPipeClass · 0.90
UnusedTransientClass · 0.90
TestMiddlewareClass · 0.90
InvalidMiddlewareClass · 0.90
TestMiddlewareClass · 0.90
TestMiddlewareClass · 0.90
DependencyOneClass · 0.90
DependencyTwoClass · 0.90
MainTestClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected