Skip to content

Commit e0274e4

Browse files
authored
fix(types): add types for Vue.util.warn function (#11964)
See https://github.com/vuejs/vue/blob/v2.6.12/src/core/util/debug.js#L18-L26
1 parent 987f322 commit e0274e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/vue.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ export interface VueConstructor<V extends Vue = Vue> {
121121

122122
observable<T>(obj: T): T;
123123

124+
util: {
125+
warn(msg: string, vm?: InstanceType<VueConstructor>): void;
126+
};
127+
124128
config: VueConfiguration;
125129
version: string;
126130
}

0 commit comments

Comments
 (0)