fix types for demos

This commit is contained in:
Philipp Kühn
2021-09-16 21:30:09 +02:00
parent ba283bcd43
commit 2a0a365d45
7 changed files with 320 additions and 23 deletions

View File

@@ -1,6 +1,8 @@
/// <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

@@ -4,8 +4,7 @@
"private": true,
"scripts": {
"start": "vite",
"build": "vite build",
"_build": "vue-tsc --noEmit && vite build",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview --port 3000"
},
"dependencies": {
@@ -23,13 +22,16 @@
"@types/uuid": "^8.3.1",
"@vitejs/plugin-react-refresh": "^1.3.6",
"autoprefixer": "^10.3.4",
"d3": "^7.0.1",
"iframe-resizer": "^4.3.2",
"postcss": "^8.3.6",
"prosemirror-view": "^1.20.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.3.0",
"remixicon": "^2.5.0",
"shiki": "^0.9.11",
"simplify-js": "^1.2.4",
"tailwindcss": "^2.2.15",
"uuid": "^8.3.2",
"vue": "^3.0.5",

View File

@@ -1,3 +1,7 @@
<script>
// @ts-nocheck
</script>
<template>
<ul v-if="$route.path === '/'">
<li

View File

@@ -2,6 +2,19 @@
"extends": "../tsconfig.json",
"types": ["vite/client"],
"compilerOptions": {
"baseUrl": "."
}
"baseUrl": ".",
"paths": {
"@tiptap/*": ["../packages/*/dist", "../packages/*/src"]
},
"types": [
"node"
]
},
"include": [
"**/*.vue"
],
"exclude": [
"**/node_modules",
"**/dist"
]
}