Skip to content

Commit

Permalink
attempt 2 fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
CarelessCourage committed Jun 24, 2023
1 parent 5febcfd commit 0f95be6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/// <reference types="vite/client" />
/* eslint-disable */
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@myriadjs/dye",
"private": false,
"version": "0.0.699",
"version": "0.0.6996",
"description": "Color picker in a Vue component",
"author": "Samuel M. Bednarz<https://github.com/CarelessCourage>",
"license": "MIT",
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/* Bundler mode */
"moduleResolution": "node",
"allowImportingTsExtensions": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"isolatedModules": true,
// "noEmit": true,
Expand All @@ -22,7 +23,13 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,

"baseUrl": "./",
"paths": {
"@components/*": ["./components/*"],
"@composables/*": ["./composables/*"],
}
},
"exclude": ["src/App.vue", "src/main.ts"],
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/components/*.vue"],
Expand Down

0 comments on commit 0f95be6

Please sign in to comment.