UNPKG

tsyringe

Version:

Lightweight dependency injection container for JavaScript/TypeScript

8 lines (7 loc) 336 B
import constructor from "../types/constructor"; import Provider from "./provider"; import { DelayedConstructor } from "../lazy-helpers"; export default interface ClassProvider<T> { useClass: constructor<T> | DelayedConstructor<T>; } export declare function isClassProvider<T>(provider: Provider<T>): provider is ClassProvider<any>;