Interface IPreloaderCallbacksMap<TM>

Callbacks map for the Preloader module.

interface IPreloaderCallbacksMap<TM = IPreloaderMutableProps> {
    destroy: undefined;
    hidden: undefined;
    hide: undefined;
    loaded: undefined;
    props: Partial<TM>;
}

Type Parameters

Hierarchy (View Summary)

Properties

destroy: undefined

Triggered when the module is destroyed.

hidden: undefined

Triggered when the preloader is completely hidden.

hide: undefined

Triggered when the preloader starts hiding.

loaded: undefined

Triggered when the page is fully loaded.

props: Partial<TM>

Triggered when the module's properties are updated. Receives the diff (changed keys and new values) as the first argument.