Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
12 lines
508 B
Plaintext
12 lines
508 B
Plaintext
import DependencyContainer from "../types/dependency-container";
|
|
import Provider from "./provider";
|
|
/**
|
|
* Provide a dependency using a factory.
|
|
* Unlike the other providers, this does not support instance caching. If
|
|
* you need instance caching, your factory method must implement it.
|
|
*/
|
|
export default interface FactoryProvider<T> {
|
|
useFactory: (dependencyContainer: DependencyContainer) => T;
|
|
}
|
|
export declare function isFactoryProvider<T>(provider: Provider<T>): provider is FactoryProvider<any>;
|