vue-lynx / ComponentPublicInstance

Type Alias: ComponentPublicInstance<P, B, D, C, M, E, PublicProps, Defaults, MakeDefaultsOptional, Options, I, S, Exposed, TypeRefs, TypeEl>

type ComponentPublicInstance<P, B, D, C, M, E, PublicProps, Defaults, MakeDefaultsOptional, Options, I, S, Exposed, TypeRefs, TypeEl>: object & ExposedKeys<IfAny<P, P, Readonly<Defaults> & Omit<P, keyof ShallowUnwrapRef<B> | keyof Defaults>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>, Exposed>;

Type declaration

$

$: ComponentInternalInstance;

$data

$data: D;

$props

$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;

$attrs

$attrs: Attrs;

$refs

$refs: Data & TypeRefs;

$slots

$slots: UnwrapSlotsType<S>;

$root

$root: ComponentPublicInstance | null;

$parent

$parent: ComponentPublicInstance | null;

$host

$host: Element | null;

$emit

$emit: EmitFn<E>;

$el

$el: TypeEl;

$options

$options: Options & MergedComponentOptionsOverride;

$forceUpdate()

$forceUpdate: () => void;

Returns

void

$nextTick

$nextTick: typeof nextTick;

$watch()

Type Parameters

Type Parameter
T extends string | (...args) => any

Parameters

ParameterType
sourceT
cbT extends (...args) => R ? (...args) => any : (...args) => any
options?WatchOptions<boolean>

Returns

WatchStopHandle

Type Parameters

Type ParameterDefault type
Pobject
Bobject
Dobject
C extends ComputedOptionsobject
M extends MethodOptionsobject
E extends EmitsOptionsobject
PublicPropsobject
Defaultsobject
MakeDefaultsOptional extends booleanfalse
OptionsComponentOptionsBase<any, any, any, any, any, any, any, any, any>
I extends ComponentInjectOptionsobject
S extends SlotsTypeobject
Exposed extends string""
TypeRefs extends Dataobject
TypeEl extends Elementany

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:485