@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
20 lines (19 loc) • 523 B
TypeScript
export interface ActivationOptions {
lifetime?: InstanceLifetimes;
onStartup?: (type: any) => void;
createFactory?: (classType: any) => any;
onInstanceCreated?: (instance: any) => void;
onBeforeInstanceCreated?: () => void;
onDisposing?: (instance: any) => void;
}
export interface TypeDefinition extends ActivationOptions {
type: any;
}
export declare enum InstanceLifetimes {
Transient = 0,
Singleton = 1,
Scoped = 2
}
export interface IDisposable {
onDisposing: () => void;
}