ink-cartridge
    Preparing search index...

    Type Alias GotoScreenFn

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

    Function signature for jumping to any registered screen across branches.

    The trailing arguments follow GotoScreenArgs: params is optional when the target declares no required props.

    Type Declaration

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

        • C extends React.ComponentType<any>

          The target component type.

        Parameters

        • component: C

          The target component (must be registered).

        • ...args: GotoScreenArgs<C>

        Returns void