UNPKG

@pulzar/core

Version:

Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support

23 lines 1.3 kB
import { Token } from "./tokens"; export interface InjectableOptions { token?: Token; singleton?: boolean; scope?: "singleton" | "transient" | "request"; } export declare function Injectable(options?: InjectableOptions): ClassDecorator; export declare function Inject(token?: Token): ParameterDecorator; export declare function Optional(): ParameterDecorator; export declare function Singleton(): ClassDecorator; export declare function Transient(): ClassDecorator; export declare function Scoped(scope: "singleton" | "transient" | "request"): ClassDecorator; export declare function RequestScoped(): ClassDecorator; export declare function TransientScoped(): ClassDecorator; export declare function Provider(token: Token): ClassDecorator; export declare function getInjectableMetadata(target: any): InjectableOptions | undefined; export declare function getInjectMetadata(target: any): Token[]; export declare function getOptionalMetadata(target: any): boolean[]; export declare function isInjectable(target: any): boolean; export declare function isSingleton(target: any): boolean; export declare function getProviderToken(target: any): Token | undefined; export declare function getScope(target: any): "singleton" | "transient" | "request"; //# sourceMappingURL=decorators.d.ts.map