Skip to content

Commit

Permalink
build: update vue type shims
Browse files Browse the repository at this point in the history
The type shims for vue need to be updated to match vue 3 types.
  • Loading branch information
luqven committed Jul 8, 2021
1 parent f0077af commit f802f76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/shims-tsx.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import Vue, { VNode } from 'vue';
import { VNode } from 'vue';

declare global {
namespace JSX {
// tslint:disable no-empty-interface
interface Element extends VNode {}
// tslint:disable no-empty-interface
interface ElementClass extends Vue {}
interface IntrinsicElements {
[elem: string]: any;
}
Expand Down
5 changes: 3 additions & 2 deletions src/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
import { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
}

0 comments on commit f802f76

Please sign in to comment.