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

Typescript support #103

Open
mschwartz opened this issue Jan 25, 2019 · 2 comments
Open

Typescript support #103

mschwartz opened this issue Jan 25, 2019 · 2 comments

Comments

@mschwartz
Copy link

No .d.ts file in dist.

Vue compiler complains about this missing. Many plugins do support it (for typescript).

Thanks for this!

@euvl
Copy link
Owner

euvl commented Feb 24, 2019

Hey @mschwartz, Can you add one? I am just starting to use typescript and my knowledge is not enough to do it yet.

@xumoyan
Copy link

xumoyan commented Apr 24, 2019

create d.ts file in src directory
declare module 'vue-js-toggle-button'
main.ts
import { ToggleButton } from 'vue-js-toggle-button'

This will support typescript

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

No branches or pull requests

3 participants