|
|
@@ -8,7 +8,7 @@ import {
|
|
|
DirectiveOptions,
|
|
|
DirectiveFunction
|
|
|
} from "./options";
|
|
|
-import { VNode, VNodeData, VNodeChildren } from "./vnode";
|
|
|
+import { VNode, VNodeData, VNodeChildren, ScopedSlot } from "./vnode";
|
|
|
import { PluginFunction, PluginObject } from "./plugin";
|
|
|
|
|
|
export type CreateElement = {
|
|
|
@@ -40,6 +40,7 @@ export declare class Vue {
|
|
|
readonly $children: Vue[];
|
|
|
readonly $refs: { [key: string]: Vue | Element | Vue[] | Element[]};
|
|
|
readonly $slots: { [key: string]: VNode[] };
|
|
|
+ readonly $scopedSlots: { [key: string]: ScopedSlot };
|
|
|
readonly $isServer: boolean;
|
|
|
|
|
|
$mount(elementOrSelector?: Element | String, hydrating?: boolean): this;
|
|
|
@@ -56,7 +57,8 @@ export declare class Vue {
|
|
|
$once(event: string, callback: Function): this;
|
|
|
$off(event?: string, callback?: Function): this;
|
|
|
$emit(event: string, ...args: any[]): this;
|
|
|
- $nextTick(callback?: (this: this) => void): void;
|
|
|
+ $nextTick(callback: (this: this) => void): void;
|
|
|
+ $nextTick(): Promise<void>;
|
|
|
$createElement: CreateElement;
|
|
|
|
|
|
static config: {
|
|
|
@@ -69,6 +71,7 @@ export declare class Vue {
|
|
|
|
|
|
static extend(options: ComponentOptions<Vue> | FunctionalComponentOptions): typeof Vue;
|
|
|
static nextTick(callback: () => void, context?: any[]): void;
|
|
|
+ static nextTick(): Promise<void>
|
|
|
static set<T>(object: Object, key: string, value: T): T;
|
|
|
static set<T>(array: T[], key: number, value: T): T;
|
|
|
static delete(object: Object, key: string): void;
|