vue-number-format icon indicating copy to clipboard operation
vue-number-format copied to clipboard

Typescript Support

Open maico910 opened this issue 2 years ago • 4 comments

The project is missing tsconfig.json to generate declaration file for typescript support

image

maico910 avatar Sep 18 '22 01:09 maico910

@igortrinidad can you create comments in utils.js to explain what are the actions / results do you expect for every function?

maico910 avatar Sep 18 '22 23:09 maico910

Hey bro, i'm updating the library to use Vite for the bundle but i'm still stuck on this error... If you want to check it out the the branch with the changes here it's https://github.com/igortrinidad/vue-number-format/tree/update-docs-vue-installation

igortrinidad avatar Sep 19 '22 01:09 igortrinidad

even is WIP, split in several commits, a lot of diff make it difficult to help, and please just submit what is necessary, I think a example folder is not necessary, or I was wrong?

maico910 avatar Sep 19 '22 02:09 maico910

The /example/vue-docs-project is the the project that generates the docs / live demo / endpoint, so we need to add it somewhere within this repository... I agree that the src folder isn't the right place... But it needs to be somewhere, so while i was moving the docs/example from src/docs to /example/vue-docs-project i updated the vue installation, that's why the big diff...

But man, the problem of the library it's how vite / rollup are bundling the package to serve it as a library, this isn't a application repository, it's need to serve as a library / package, compacted and bundled to be as light as possible... It's kind different from an application repository...

Did you already build some library/package using this envronment: Vue / Vite and knows how to proper setup the build configuration to avoid this ts error on vite build?

igortrinidad avatar Sep 19 '22 10:09 igortrinidad