Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
型定義が反映されるように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
tohutohu committed May 28, 2019
1 parent 19e625f commit 3721f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"lint": "vue-cli-service lint",
"fix": "vue-cli-service lint --fix",
"gen-unicode_emojis": "node build/gen-unicode_emojis",
"gen-swagger-type": "dtsgen --out src/types/swagger.d.ts --url https://traptitech.github.io/traQ/swagger.yaml && vue-cli-service lint --fix src/swagger.d.ts"
"gen-swagger-type": "dtsgen --out src/types/swagger.d.ts --url https://traptitech.github.io/traQ/swagger.yaml && vue-cli-service lint --fix src/swagger.d.ts",
"postinstall": "cat node_modules/vuex/types/vue.d.ts | (rm node_modules/vuex/types/vue.d.ts; sed -e 's/\\$store: Store<any>/\\$store: ExStore/g' -e 's/{ Store }/{ Store, ExStore }/g' > node_modules/vuex/types/vue.d.ts)"
},
"dependencies": {
"dtsgenerator": "^2.0.7",
Expand Down
8 changes: 0 additions & 8 deletions src/types/shims-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import { ExStore } from 'vuex'

declare module 'vue/types/vue' {
interface Vue {
$store: ExStore
}
}

declare module '*.vue' {
import Vue from 'vue'
export default Vue
Expand Down

0 comments on commit 3721f95

Please sign in to comment.