get-svelte
Version:
A simple, powerful state management library for Svelte applications, inspired by GetX for Flutter
27 lines (26 loc) • 920 B
TypeScript
/**
* A utility class that acts as a bridge for calling lifecycle methods on controllers.
* It stores references to controller lifecycle methods and provides a way to invoke them.
*/
export declare class InnerCaller {
/** Reference to the controller's close/cleanup method */
close: Function;
/** Reference to the controller's initialization method */
init: Function;
/** Reference to the controller's ready method */
ready: Function;
/** Reference to the callback function to be executed when disposing the controller */
onDisposeCallBack: Function;
/**
* Calls the close lifecycle method on the associated controller
*/
callClose(): void;
/**
* Calls the initialization lifecycle method on the associated controller
*/
callInit(): void;
/**
* Calls the ready lifecycle method on the associated controller
*/
callReady(): void;
}