Webapp: fixed typescript configuration
This commit is contained in:
parent
4e8c24b5f3
commit
47ba493a43
|
|
@ -2,7 +2,7 @@
|
|||
<main-component></main-component>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import MainComponent from "./components/MainComponent.vue";
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,19 @@
|
|||
{
|
||||
"extends": "@vue/tsconfig/tsconfig.web.json",
|
||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
||||
"include": [
|
||||
"env.d.ts",
|
||||
"src/**/*",
|
||||
"src/**/*.vue"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
},
|
||||
"noImplicitThis": true,
|
||||
},
|
||||
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.vite-config.json"
|
||||
|
|
|
|||
Loading…
Reference in New Issue