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

Method isInjectable

packages/core/scanner.ts:741–743  ·  view source on GitHub ↗

* @param metatype * @returns `true` if `metatype` is annotated with the `@Injectable()` decorator.

(metatype: Type<any>)

Source from the content-addressed store, hash-verified

739 * @returns `true` if `metatype` is annotated with the `@Injectable()` decorator.
740 */
741 private isInjectable(metatype: Type<any>): boolean {
742 return !!Reflect.getMetadata(INJECTABLE_WATERMARK, metatype);
743 }
744
745 /**
746 * @param metatype

Callers 1

insertModuleMethod · 0.95

Calls 1

getMetadataMethod · 0.45

Tested by

no test coverage detected