UNPKG

364 BTypeScriptView Raw
1/**
2 * Lifetime type.
3 */
4export type LifetimeType = 'SINGLETON' | 'TRANSIENT' | 'SCOPED';
5/**
6 * Lifetime types.
7 */
8export declare const Lifetime: Record<LifetimeType, LifetimeType>;
9/**
10 * Returns true if and only if the first lifetime is strictly longer than the second.
11 */
12export declare function isLifetimeLonger(a: LifetimeType, b: LifetimeType): boolean;