Skip to content

Commit

Permalink
Updated vue declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds committed Oct 24, 2023
1 parent 7737d2b commit f54f08e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "vite",
"build": "vite build",
"serve": "vite preview",
"lint": "eslint --fix . --ext .js,.ts,.vue",
"lint": "eslint . --ext .js,.ts,.vue",
"test:unit": "vitest run",
"test:coverage": "vitest run --coverage"
},
Expand Down
5 changes: 3 additions & 2 deletions ppr-ui/src/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// "ambient module" - used to describe modules written in JS
// (needed for unit test files to find component modules)
declare module '*.vue' {
import Vue from 'vue'
export default Vue
import type { DefineComponent } from 'vue'
const component: DefineComponent<Record<string,unknown>, Record<string,unknown>, unknown>
export default component
}

0 comments on commit f54f08e

Please sign in to comment.