UNPKG

sahara

Version:

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

23 lines 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransientLifetime = exports.MemoryLifetime = void 0; class MemoryLifetime { constructor() { this.value = null; } fetch() { return this.value; } store(value) { this.value = value; } } exports.MemoryLifetime = MemoryLifetime; class TransientLifetime { fetch() { return null; } store(value) { } } exports.TransientLifetime = TransientLifetime; //# sourceMappingURL=lifetime.js.map