type-alias / @typed/vue

RouteComponentProps

Declared route props exclude optional Vue infrastructure props such as ref and key.

Package version
1.0.0-beta.13
Category
type-alias

Import

import type { RouteComponentProps } from "@typed/vue";

Signatures

export type RouteComponentProps<C> = Omit<ComponentProps<C>, {
    [K in keyof ComponentProps<C>]-?: K extends keyof VNodeProps | keyof AllowedComponentProps | keyof ComponentCustomProps ? {} extends Pick<ComponentProps<C>, K> ? K : never : never;
}[keyof ComponentProps<C>]>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source