UNPKG

commitmnt

Version:

Copy your gitlab and bitbucket commits to a new, publishable github repo

12 lines (11 loc) 418 B
/** * @internal * * Takes a list of dependencies and creates a function * that will inject those dependencies into whatever function * it is passed * * @param deps the list of dependencies * @returns the injector function */ export declare function createInjector<DepsT>(deps: DepsT): <ArgsT extends unknown[], ReturnT>(fn: (deps: DepsT, ...args: ArgsT) => ReturnT) => (...args: ArgsT) => ReturnT;