@robotlegsjs/core
Version:
An architecture-based IoC framework for JavaScript/TypeScript
11 lines (10 loc) • 490 B
TypeScript
import { interfaces } from "inversify";
/**
* Instantiate a object inside the context of the injector without keeping it for future requests.
* All injections of the object will be provided by the injector, but the injector will not keep
* a reference of the object for future requests.
*
* @param injector An injector
* @param type A object that must be instantiated
*/
export declare function instantiateUnmapped<T>(injector: interfaces.Container, type: interfaces.Newable<T>): T;