Webapp: fixed typescript configuration
This commit is contained in:
parent
4e8c24b5f3
commit
47ba493a43
|
|
@ -2,7 +2,7 @@
|
||||||
<main-component></main-component>
|
<main-component></main-component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script lang="ts">
|
||||||
import MainComponent from "./components/MainComponent.vue";
|
import MainComponent from "./components/MainComponent.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import jsonURL from "../assets/test.json?url";
|
import jsonURL from "../assets/test.json?url";
|
||||||
|
import { defineComponent } from "vue";
|
||||||
|
|
||||||
export default {
|
export default defineComponent({
|
||||||
name: "MainComponent",
|
name: "MainComponent",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -22,7 +23,7 @@ export default {
|
||||||
this.value = json;
|
this.value = json;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,19 @@
|
||||||
{
|
{
|
||||||
"extends": "@vue/tsconfig/tsconfig.web.json",
|
"extends": "@vue/tsconfig/tsconfig.web.json",
|
||||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
|
"include": [
|
||||||
|
"env.d.ts",
|
||||||
|
"src/**/*",
|
||||||
|
"src/**/*.vue"
|
||||||
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": [
|
||||||
}
|
"./src/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"noImplicitThis": true,
|
||||||
},
|
},
|
||||||
|
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.vite-config.json"
|
"path": "./tsconfig.vite-config.json"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue