Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 1x 1x 1x | import { InjectableConfig } from "./decorators";
/**
* @description Constants used for reflection metadata keys in the dependency injection system.
* @summary Injectables Reflection keys used to store and retrieve metadata about injectable classes and properties.
* @property {string} REFLECT Reflection injectables base key prefix for all metadata keys
* @property {string} INJECTABLE Reflection key suffix for marking a class as injectable
* @property {string} INJECT Reflection key suffix for marking a property for injection
* @const InjectablesKeys
* @memberOf module:injectable-decorators
*/
export const InjectablesKeys = {
REFLECT: "inject.db.",
INJECTABLE: "injectable",
INJECT: "inject",
};
/**
* @description Default configuration applied by the @injectable decorator when none is provided.
* @summary Sets sensible defaults such as singleton lifecycle for newly registered injectables.
* @const DefaultInjectablesConfig
* @memberOf module:injectable-decorators
*/
export const DefaultInjectablesConfig: InjectableConfig = {
singleton: true,
};
/**
* @description Reflection metadata key for accessing TypeScript type information.
* @summary Holds the key for retrieving the design type from TypeScript's reflection metadata.
* @const TypeKey
* @memberOf module:injectable-decorators
*/
export const TypeKey = "design:type";
|