Add missing shims

This commit is contained in:
Matthias 2020-06-05 11:06:02 +02:00
parent 3138806ca4
commit 6c878f41bc
2 changed files with 14 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
'plugin:prettier-vue/recommended',
'prettier/vue',
'prettier/@typescript-eslint',
// 'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended',
'@vue/typescript',
'@vue/typescript/recommended',
],

13
src/shims-tsx.d.ts vendored Normal file
View File

@ -0,0 +1,13 @@
import Vue, { VNode } from 'vue';
declare global {
namespace JSX {
// tslint:disable no-empty-interface
type Element = VNode;
// tslint:disable no-empty-interface
type ElementClass = Vue;
interface IntrinsicElements {
[elem: string]: any;
}
}
}