Interface FunctionalComponent<P, E, S, EE>

interface FunctionalComponent<P, E, S, EE> {
    __file?: string;
    __isBuiltIn?: boolean;
    __name?: string;
    compatConfig?: CompatConfig;
    displayName?: string;
    emits?: EE | (keyof EE)[];
    inheritAttrs?: boolean;
    props?: ComponentPropsOptions<P>;
    slots?: IfAny<S, Readonly<InternalSlots>, SlotsType<S>>;
    (props: P & EmitsToProps<EE>, ctx: Omit<SetupContext<EE, IfAny<S, {}, SlotsType<S>>>, "expose">): any;
}

Type Parameters

  • P = {}
  • E extends EmitsOptions | Record<string, any[]> = {}
  • S extends Record<string, any> = any
  • EE extends EmitsOptions = ShortEmitsToObject<E>

Hierarchy

  • ComponentInternalOptions
    • FunctionalComponent
  • Parameters

    Returns any

Properties

__file?: string

This one should be exposed so that devtools can make use of it

__isBuiltIn?: boolean

Compat build only, for bailing out of certain compatibility behavior

__name?: string

name inferred from filename

compatConfig?: CompatConfig
displayName?: string
emits?: EE | (keyof EE)[]
inheritAttrs?: boolean
slots?: IfAny<S, Readonly<InternalSlots>, SlotsType<S>>