Rezi
    Preparing search index...

    Interface App<S>

    interface App<S> {
        pendingChord: string | null;
        router?: RouterApi;
        debugLayout(enabled?: boolean): boolean;
        dispose(): void;
        draw(fn: DrawFn): void;
        getBindings(
            mode?: string,
        ): readonly Readonly<
            { description?: string; mode: string; sequence: string },
        >[];
        getMode(): string;
        getTerminalProfile(): TerminalProfile;
        keys(bindings: BindingMap<KeyContext<S>>): void;
        measureElement(
            id: string,
        ): Readonly<{ h: number; w: number; x: number; y: number }> | null;
        modes(modes: ModeBindingMap<KeyContext<S>>): void;
        onEvent(handler: EventHandler): () => void;
        onFocusChange(handler: FocusChangeHandler): () => void;
        replaceRoutes(
            routes: readonly Readonly<
                {
                    children?: readonly Readonly<
                        (
                            { id: string; screen: (params: Readonly<Record<string, string>>, context: Readonly<{ router: RouterApi; state: Readonly<S>; update: (updater: S | ((prev: Readonly<S>) => S)) => void; outlet: VNode | null; }>) => VNode; guard?: RouteGuard<...>; children?: readonly Readonly<...>[]; title?: string; keybinding?: string; }
                        ),
                    >[];
                    guard?: RouteGuard<S>;
                    id: string;
                    keybinding?: string;
                    screen: (params: RouteParams, context: RouteRenderContext<S>) => VNode;
                    title?: string;
                },
            >[],
        ): void;
        replaceView(fn: ViewFn<S>): void;
        run(): Promise<void>;
        setMode(modeName: string): void;
        setTheme(theme: ThemeDefinition): void;
        start(): Promise<void>;
        stop(): Promise<void>;
        update(updater: S | ((prev: Readonly<S>) => S)): void;
        view(fn: ViewFn<S>): void;
    }

    Type Parameters

    • S
    Index

    Properties

    pendingChord: string | null
    router?: RouterApi

    Methods

    • Parameters

      • Optionalenabled: boolean

      Returns boolean

    • Parameters

      • Optionalmode: string

      Returns readonly Readonly<{ description?: string; mode: string; sequence: string }>[]

    • Return the computed layout rect for a widget by its id, or null if not found.

      Parameters

      • id: string

      Returns Readonly<{ h: number; w: number; x: number; y: number }> | null

    • Parameters

      • routes: readonly Readonly<
            {
                children?: readonly Readonly<
                    (
                        { id: string; screen: (params: Readonly<Record<string, string>>, context: Readonly<{ router: RouterApi; state: Readonly<S>; update: (updater: S | ((prev: Readonly<S>) => S)) => void; outlet: VNode | null; }>) => VNode; guard?: RouteGuard<...>; children?: readonly Readonly<...>[]; title?: string; keybinding?: string; }
                    ),
                >[];
                guard?: RouteGuard<S>;
                id: string;
                keybinding?: string;
                screen: (params: RouteParams, context: RouteRenderContext<S>) => VNode;
                title?: string;
            },
        >[]

      Returns void