diff --git a/types/test/vue-test.ts b/types/test/vue-test.ts index e2f6f38c300..3ea0c30846c 100644 --- a/types/test/vue-test.ts +++ b/types/test/vue-test.ts @@ -78,6 +78,7 @@ class Test extends Vue { this.set({}, "", ""); this.set([true, false, true], 1, true); this.delete({}, ""); + this.delete([true, false], 0); this.directive("", {bind() {}}); this.filter("", (value: number) => value); this.component("", { data: () => ({}) }); diff --git a/types/vue.d.ts b/types/vue.d.ts index 3ae8e02e998..04b112b9eb8 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -84,6 +84,7 @@ export declare class Vue { static set(object: Object, key: string, value: T): T; static set(array: T[], key: number, value: T): T; static delete(object: Object, key: string): void; + static delete(array: T[], key: number): void; static directive( id: string,