import type { ComponentPublicInstance, Ref } from 'vue' /** Vue 3.3 introduced this type; Vue 2.7 / 3.2 need the local definition. */ export type MaybeRefOrGetter = T | Ref | (() => T) export type Awaitable = T | PromiseLike export type Callback = (...args: any[]) => any export type Nullable = T | null | undefined // export type Numeric = number | `${number}` export type MaybeElement = Nullable export type MaybeElementRef = MaybeRefOrGetter> export type DeepPartial = { [K in keyof T]?: T[K] extends readonly unknown[] ? T[K] : T[K] extends object ? DeepPartial : T[K] }