import { interfaces } from "inversify" ; param injector param type export function instantiateUnmapped < T > ( injector , type ) { injector . bind ( type ) . to ( type ) ; let instance = injector . get < T > ( type ) ; injector . unbind ( type ) ; return instance ; }