UNPKG

power-di

Version:

A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.

9 lines (8 loc) 204 B
/** * hooks * * @param keyOrType interface */ export declare function useInstanceHook<T = undefined, KeyOrType = any>(keyOrType: KeyOrType): KeyOrType extends { prototype: infer R; } ? R : never;