tuil
ReferencePackages@mwillbanks/tuil-routerAPI

NavigationTarget

type exported by @mwillbanks/tuil-router.

View rawEdit

type

Public type exported by @mwillbanks/tuil-router.

export type NavigationTarget<TTo extends string = string, TParams = unknown> = {
  readonly to: TTo;
  readonly surface?: NavigationSurface;
  readonly replace?: boolean;
  readonly signal?: AbortSignal;
} & (unknown extends TParams
  ? { readonly params?: unknown }
  : keyof TParams extends never
    ? { readonly params?: TParams }
    : { readonly params: TParams });

Members

This declaration has no public members.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-router

On this page