fix types for demos
This commit is contained in:
4
demos/shims-vue.d.ts → demos/env.d.ts
vendored
4
demos/shims-vue.d.ts → demos/env.d.ts
vendored
@@ -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
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<script>
|
||||
// @ts-nocheck
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ul v-if="$route.path === '/'">
|
||||
<li
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user