Hi I have a question didn't find answer/solution till now... I am looking to include typescript in a Vue project but not directly into component level. What I plan to do is, create some .ts files and compile them to .js files so then I can reference/import these .js files extracted from .ts and make use of them inside components... for example...
<template>
...
</template>
<script>
import file from './file.js';
...
</script>
<style>
...
</style>
then use the code from file.js inside the methods defined inside script tags in the component. What I wanted to know... is this possible (if yes how?) and is this a good approach? I plan to use this approach for most of my components so they have a separated imported script.