type-alias / @typed/vue

ComponentProps

Public props accepted by a Vue SFC, defineComponent, or functional component.

Package version
1.0.0-beta.13
Category
type-alias

Import

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

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

export type ComponentProps<C> = C extends abstract new (...args: any[]) => {
    $props: infer P;
} ? P : C extends FunctionalComponent<infer P> ? P : Record<string, unknown>;

Other public imports

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

Source