UNPKG

@robotlegsjs/core

Version:

An architecture-based IoC framework for JavaScript/TypeScript

47 lines (46 loc) 1.05 kB
/** * Robotlegs object lifecycle event */ export declare class LifecycleEvent { static ERROR: string; static STATE_CHANGE: string; static PRE_INITIALIZE: string; static INITIALIZE: string; static POST_INITIALIZE: string; static PRE_SUSPEND: string; static SUSPEND: string; static POST_SUSPEND: string; static PRE_RESUME: string; static RESUME: string; static POST_RESUME: string; static PRE_DESTROY: string; static DESTROY: string; static POST_DESTROY: string; private _error; private _type; private _target; /** * Associated lifecycle error */ get error(): Error; /** * The type of event */ get type(): string; /** * The target of event */ get target(): any; set target(value: any); /** * Creates a Lifecycle Event * * @param type The event type * @param error Optional error */ constructor(type: string, error?: Error); /** * @inheritDoc */ clone(): LifecycleEvent; }