UNPKG

sahara

Version:

An inversion-of-control container for managing dependencies. Supports constructor, property and method injection

15 lines (14 loc) 381 B
export interface Lifetime { fetch<T = unknown>(): T | null; store(value: unknown): void; } export declare class MemoryLifetime implements Lifetime { private value; constructor(); fetch<T = unknown>(): T | null; store(value: unknown): void; } export declare class TransientLifetime implements Lifetime { fetch(): null; store(value: unknown): void; }