UNPKG

@lattice/core

Version:
13 lines (12 loc) 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var container_1 = require("./container"); exports.PROVIDER_FACTORIES_TOKEN = '__provider_factories__'; function registValue(provider) { container_1.providerContainer.bind(provider.provide).toConstantValue(provider.useValue); } exports.registValue = registValue; function registFactory(provider) { container_1.providerContainer.bind(exports.PROVIDER_FACTORIES_TOKEN).toConstantValue(provider); } exports.registFactory = registFactory;