0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs/api/frameworks.md
2022-11-15 15:43:39 -07:00

629 B

title
Frameworks

FrameworkGenerics

The FrameworksGenerics interface is available for framework adapters to extend the internal types used by the core router instance.

Primarily these include:

  • Component

Internally, the GetFrameworkGeneric function is used to retrieve these generics.

export interface FrameworkGenerics {
  // The following properties are used internally
  // and are extended by framework adapters, but cannot be
  // pre-defined as constraints:
  //
  // Component: any
}

export type GetFrameworkGeneric<U> = U extends keyof FrameworkGenerics
  ? FrameworkGenerics[U]
  : any