improve typescript setup

This commit is contained in:
Philipp Kühn
2021-09-17 12:43:26 +02:00
parent 2a0a365d45
commit 1a43d2992f
13 changed files with 65 additions and 55 deletions

8
demos/env.d.ts vendored
View File

@@ -1,8 +0,0 @@
/// <reference types="vite/client" />
declare module '*.vue' {
import { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}

View File

@@ -1,6 +1,5 @@
{
"extends": "../tsconfig.json",
"types": ["vite/client"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
@@ -12,9 +11,5 @@
},
"include": [
"**/*.vue"
],
"exclude": [
"**/node_modules",
"**/dist"
]
}