textmode.js
Version:
textmode.js is a lightweight creative coding library for creating real-time ASCII art on the web.
23 lines (22 loc) • 633 B
TypeScript
import type { LoadingScreenState } from './types';
/**
* Manages the state of the loading screen.
* @ignore
*/
export declare class LoadingScreenStateMachine {
private _state;
private _errorMessage;
private _errorDetails;
constructor(initialState?: LoadingScreenState);
get $state(): LoadingScreenState;
get $isEnabled(): boolean;
get $shouldRender(): boolean;
get $errorMessage(): string;
get $errorDetails(): string;
$activate(): void;
$finish(): void;
$startTransition(): void;
$completeTransition(): void;
$setError(error: Error | string): void;
$disable(): void;
}