ink-cartridge
    Preparing search index...

    Type Alias GotoScreenFn

    GotoScreenFn: <C extends React.ComponentType<any>>(
        component: C,
        params: React.ComponentProps<C>,
    ) => void

    Function signature for jumping to any registered screen across branches.

    Type Declaration

      • <C extends React.ComponentType<any>>(
            component: C,
            params: React.ComponentProps<C>,
        ): void
      • Type Parameters

        • C extends React.ComponentType<any>

          The target component type.

        Parameters

        • component: C

          The target component (must be registered).

        • params: React.ComponentProps<C>

          Props to pass to the component.

        Returns void