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 types? #210

Open
lukewhrit opened this issue May 8, 2020 · 5 comments
Open

Typescript types? #210

lukewhrit opened this issue May 8, 2020 · 5 comments

Comments

@lukewhrit
Copy link

This would allow for usage within Typescript projects.

@ndelvalle
Copy link
Owner

Yeah, that would be cool, @324Luke are you familiar with TS to provide some help?

@lukewhrit
Copy link
Author

lukewhrit commented May 15, 2020

@ndelvalle I work with TypeScript fairly often. I have never worked with typescript declaration files though. So I may be able to provide some help.

@astagi
Copy link

astagi commented Oct 22, 2020

@lukewhrit @ndelvalle I had the same problem on a Vue project written in TS, I tried this fix #265 . Let me know if it works for you :)

@josueayala27
Copy link

@lukewhrit @ndelvalle I had the same problem on a Vue project written in TS, I tried this fix #265 . Let me know if it works for you :)

Works ⚡️

@josueayala27
Copy link

Add the following line in the configuration file tsconfig.json

    "types": [
      ...
      "types/v-click-outside.d.ts"
    ]

In your root folder create a directory types/v-click-outside.d.ts

declare module 'v-click-outside';

That's all 😜

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

4 participants