Webapp: fixed typescript configuration

This commit is contained in:
Francesco 2022-04-24 17:02:59 +02:00
parent 4e8c24b5f3
commit 47ba493a43
3 changed files with 19 additions and 12 deletions

View File

@ -2,7 +2,7 @@
<main-component></main-component>
</template>
<script>
<script lang="ts">
import MainComponent from "./components/MainComponent.vue";
export default {

View File

@ -5,8 +5,9 @@
<script lang="ts">
import jsonURL from "../assets/test.json?url";
import { defineComponent } from "vue";
export default {
export default defineComponent({
name: "MainComponent",
data() {
return {
@ -22,7 +23,7 @@ export default {
this.value = json;
});
},
};
});
</script>
<style scoped></style>

View File

@ -1,16 +1,22 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"include": [
"env.d.ts",
"src/**/*",
"src/**/*.vue"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
},
"noImplicitThis": true,
},
"references": [
{
"path": "./tsconfig.vite-config.json"
}
{
"path": "./tsconfig.vite-config.json"
}
]
}