Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generation index.d.ts for vue-cli builder #4503

Open
rom111419 opened this issue Aug 26, 2019 · 4 comments
Open

Generation index.d.ts for vue-cli builder #4503

rom111419 opened this issue Aug 26, 2019 · 4 comments

Comments

@rom111419
Copy link

What problem does this feature solve?

Today command vue-cli-service build --target lib --name libName creates only commonjs and umd js files without ts files. React and angular can generate ts files.

What does the proposed API look like?

I propose ts library generations from command vue-cli-service build --target lib --name libName with option --ts true

@Dharmendra205111014
Copy link

Hi @rom111419 Do you have any implementation proposal for this or any alternative to solve this problem until it is available in cli. I am also looking for similar feature. thanks

@Mister-Hope
Copy link

Mister-Hope commented Jun 4, 2020

I am looking for it too. I hope at least it can have a implement in Vue 3.

I think it's a good feature, why isn't the official reply to it?

@coolqingcheng
Copy link

If you build a UI component library to the TS project, there is no declaration file.When importing, the module will be prompted that it cannot be found.
I also think d.t. File is needed

@JeanMeche
Copy link

Does any of you have a workaround for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants