Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
mew-ton committed Oct 18, 2023
1 parent 07cf154 commit 96c7977
Show file tree
Hide file tree
Showing 24 changed files with 703 additions and 63 deletions.
1 change: 1 addition & 0 deletions examples/enclosure-vue2.7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"devDependencies": {
"@passerelle/enclosure-vue": "*",
"@vue/tsconfig": "^0.4.0",
"fixtures-enclosure": "*",
"vite": "^4.3.0",
"vite-plugin-vue2": "^2.0.3",
Expand Down
9 changes: 6 additions & 3 deletions examples/enclosure-vue2.7/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"extends": ["../../tsconfig.json"],
"extends": ["../../tsconfig.json", "@vue/tsconfig/tsconfig.dom.json"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
},
"types": ["vite/client"]
},
"include": ["./src/main.ts", "./src/**/*"]
}
8 changes: 8 additions & 0 deletions examples/enclosure-vue2.7/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,13 @@ __metadata:
languageName: node
linkType: hard

"@vue/tsconfig@npm:^0.4.0":
version: 0.4.0
resolution: "@vue/tsconfig@npm:0.4.0"
checksum: 1acdd0c5702e163c071fec7ba4ad7eede0a37aaf473e4afc015dad2dd200f85c638831394ca9b9c058cf9d133f4cf92f8d1c99a401f173d5bf1e40700fdcd678
languageName: node
linkType: hard

"@vue/typescript@npm:1.8.19":
version: 1.8.19
resolution: "@vue/typescript@npm:1.8.19"
Expand Down Expand Up @@ -1667,6 +1674,7 @@ __metadata:
resolution: "example-enclosure-vue2@workspace:."
dependencies:
"@passerelle/enclosure-vue": "*"
"@vue/tsconfig": ^0.4.0
fixtures-enclosure: "*"
vite: ^4.3.0
vite-plugin-vue2: ^2.0.3
Expand Down
1 change: 1 addition & 0 deletions examples/enclosure-vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"devDependencies": {
"@passerelle/enclosure-vue": "*",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/tsconfig": "^0.4.0",
"fixtures-enclosure": "*",
"vite": "^4.3.0",
"vue": "^3.3.4",
Expand Down
9 changes: 6 additions & 3 deletions examples/enclosure-vue3/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"extends": ["../../tsconfig.json"],
"extends": ["../../tsconfig.json", "@vue/tsconfig/tsconfig.dom.json"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
},
"types": ["vite/client"]
},
"include": ["./src/main.ts", "./src/**/*"]
}
8 changes: 8 additions & 0 deletions examples/enclosure-vue3/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,13 @@ __metadata:
languageName: node
linkType: hard

"@vue/tsconfig@npm:^0.4.0":
version: 0.4.0
resolution: "@vue/tsconfig@npm:0.4.0"
checksum: 1acdd0c5702e163c071fec7ba4ad7eede0a37aaf473e4afc015dad2dd200f85c638831394ca9b9c058cf9d133f4cf92f8d1c99a401f173d5bf1e40700fdcd678
languageName: node
linkType: hard

"@vue/typescript@npm:1.8.15":
version: 1.8.15
resolution: "@vue/typescript@npm:1.8.15"
Expand Down Expand Up @@ -986,6 +993,7 @@ __metadata:
dependencies:
"@passerelle/enclosure-vue": "*"
"@vitejs/plugin-vue": ^4.4.0
"@vue/tsconfig": ^0.4.0
fixtures-enclosure: "*"
vite: ^4.3.0
vue: ^3.3.4
Expand Down
1 change: 1 addition & 0 deletions examples/insider-vue2.7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"devDependencies": {
"@passerelle/insider-vue": "*",
"@vue/tsconfig": "^0.4.0",
"fixtures-insider": "*",
"vite": "^4.3.0",
"vite-plugin-vue2": "^2.0.3",
Expand Down
12 changes: 12 additions & 0 deletions examples/insider-vue2.7/src/views/ContactView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
/contact
</span>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
computed: {
test(): number {
return this.$passerelle.layout.enclosure.window.height
}
}
})
</script>
9 changes: 6 additions & 3 deletions examples/insider-vue2.7/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"extends": ["../../tsconfig.json"],
"extends": ["../../tsconfig.json", "@vue/tsconfig/tsconfig.dom.json"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
},
"types": ["vite/client"]
},
"include": ["./src/main.ts", "./src/**/*"]
}
Loading

0 comments on commit 96c7977

Please sign in to comment.