diff --git a/types/options.d.ts b/types/options.d.ts index c4d822f69ef..222f9c9a52b 100644 --- a/types/options.d.ts +++ b/types/options.d.ts @@ -59,12 +59,12 @@ export interface ComponentOptions< PropsDef=PropsDefinition> { data?: Data; props?: PropsDef; - propsData?: Object; + propsData?: object; computed?: Accessors; methods?: Methods; watch?: Record | WatchHandler | string>; - el?: Element | String; + el?: Element | string; template?: string; render?(createElement: CreateElement): VNode; renderError?: (h: () => VNode, err: Error) => VNode; @@ -84,10 +84,10 @@ export interface ComponentOptions< directives?: { [key: string]: DirectiveFunction | DirectiveOptions }; components?: { [key: string]: Component | AsyncComponent }; - transitions?: { [key: string]: Object }; + transitions?: { [key: string]: object }; filters?: { [key: string]: Function }; - provide?: Object | (() => Object); + provide?: object | (() => object); inject?: InjectOptions; model?: { diff --git a/types/vnode.d.ts b/types/vnode.d.ts index ae72065f9b8..2fd2ef13c59 100644 --- a/types/vnode.d.ts +++ b/types/vnode.d.ts @@ -27,8 +27,8 @@ export interface VNode { export interface VNodeComponentOptions { Ctor: typeof Vue; - propsData?: Object; - listeners?: Object; + propsData?: object; + listeners?: object; children?: VNodeChildren; tag?: string; } @@ -42,14 +42,14 @@ export interface VNodeData { staticClass?: string; class?: any; staticStyle?: { [key: string]: any }; - style?: Object[] | Object; + style?: object[] | object; props?: { [key: string]: any }; attrs?: { [key: string]: any }; domProps?: { [key: string]: any }; hook?: { [key: string]: Function }; on?: { [key: string]: Function | Function[] }; nativeOn?: { [key: string]: Function | Function[] }; - transition?: Object; + transition?: object; show?: boolean; inlineTemplate?: { render: Function; diff --git a/types/vue.d.ts b/types/vue.d.ts index 2b025150bc7..88a43a36e50 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -37,7 +37,7 @@ export interface Vue { readonly $attrs: Record; readonly $listeners: Record; - $mount(elementOrSelector?: Element | String, hydrating?: boolean): this; + $mount(elementOrSelector?: Element | string, hydrating?: boolean): this; $forceUpdate(): void; $destroy(): void; $set: typeof Vue.set; @@ -78,9 +78,9 @@ export interface VueConstructor { nextTick(callback: () => void, context?: any[]): void; nextTick(): Promise - set(object: Object, key: string, value: T): T; + set(object: object, key: string, value: T): T; set(array: T[], key: number, value: T): T; - delete(object: Object, key: string): void; + delete(object: object, key: string): void; delete(array: T[], key: number): void; directive(