2022-05-27 09:26:55 +00:00
|
|
|
import * as V from './index'
|
2019-04-25 03:18:07 +00:00
|
|
|
import {
|
|
|
|
DefaultData,
|
|
|
|
DefaultProps,
|
|
|
|
DefaultMethods,
|
|
|
|
DefaultComputed,
|
|
|
|
PropsDefinition
|
2022-05-27 09:26:55 +00:00
|
|
|
} from './options'
|
2019-04-25 03:18:07 +00:00
|
|
|
|
2020-07-01 09:11:46 +00:00
|
|
|
// Expose some types for backward compatibility...
|
2019-04-25 03:18:07 +00:00
|
|
|
declare namespace Vue {
|
|
|
|
// vue.d.ts
|
2022-05-27 09:26:55 +00:00
|
|
|
export type CreateElement = V.CreateElement
|
|
|
|
export type VueConstructor<V extends Vue = Vue> = V.VueConstructor<V>
|
2019-04-25 03:18:07 +00:00
|
|
|
|
|
|
|
// options.d.ts
|
2022-05-27 09:26:55 +00:00
|
|
|
export type Component<
|
|
|
|
Data = DefaultData<never>,
|
|
|
|
Methods = DefaultMethods<never>,
|
|
|
|
Computed = DefaultComputed,
|
|
|
|
Props = DefaultProps
|
|
|
|
> = V.Component<Data, Methods, Computed, Props>
|
|
|
|
export type AsyncComponent<
|
|
|
|
Data = DefaultData<never>,
|
|
|
|
Methods = DefaultMethods<never>,
|
|
|
|
Computed = DefaultComputed,
|
|
|
|
Props = DefaultProps
|
|
|
|
> = V.AsyncComponent<Data, Methods, Computed, Props>
|
|
|
|
export type ComponentOptions<
|
|
|
|
V extends Vue,
|
|
|
|
Data = DefaultData<V>,
|
|
|
|
Methods = DefaultMethods<V>,
|
|
|
|
Computed = DefaultComputed,
|
|
|
|
PropsDef = PropsDefinition<DefaultProps>,
|
|
|
|
Props = DefaultProps
|
|
|
|
> = V.ComponentOptions<V, Data, Methods, Computed, PropsDef, Props>
|
|
|
|
export type FunctionalComponentOptions<
|
|
|
|
Props = DefaultProps,
|
|
|
|
PropDefs = PropsDefinition<Props>
|
|
|
|
> = V.FunctionalComponentOptions<Props, PropDefs>
|
|
|
|
export type RenderContext<Props = DefaultProps> = V.RenderContext<Props>
|
|
|
|
export type PropType<T> = V.PropType<T>
|
|
|
|
export type PropOptions<T = any> = V.PropOptions<T>
|
|
|
|
export type ComputedOptions<T> = V.ComputedOptions<T>
|
|
|
|
export type WatchHandler<T> = V.WatchHandler<T>
|
|
|
|
export type WatchOptions = V.WatchOptions
|
|
|
|
export type WatchOptionsWithHandler<T> = V.WatchOptionsWithHandler<T>
|
|
|
|
export type DirectiveFunction = V.DirectiveFunction
|
|
|
|
export type DirectiveOptions = V.DirectiveOptions
|
2019-04-25 03:18:07 +00:00
|
|
|
|
|
|
|
// plugin.d.ts
|
2022-05-27 09:26:55 +00:00
|
|
|
export type PluginFunction<T> = V.PluginFunction<T>
|
|
|
|
export type PluginObject<T> = V.PluginObject<T>
|
2019-04-25 03:18:07 +00:00
|
|
|
|
|
|
|
// vnode.d.ts
|
2022-05-27 09:26:55 +00:00
|
|
|
export type VNodeChildren = V.VNodeChildren
|
|
|
|
export type VNodeChildrenArrayContents = V.VNodeChildrenArrayContents
|
|
|
|
export type VNode = V.VNode
|
|
|
|
export type VNodeComponentOptions = V.VNodeComponentOptions
|
|
|
|
export type VNodeData = V.VNodeData
|
|
|
|
export type VNodeDirective = V.VNodeDirective
|
2019-04-25 03:18:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare class Vue extends V.default {}
|
|
|
|
|
2022-05-27 09:26:55 +00:00
|
|
|
export = Vue
|
2019-04-25 03:18:07 +00:00
|
|
|
|
2022-05-27 09:26:55 +00:00
|
|
|
export as namespace Vue
|