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 Typings #14
Comments
Really sorry, but I'm not really a TypeScript fan. I didn't use TypeScript and I don't plan to use it, so i'm not going to do that, but I don't have a problem if someone does that 😄 |
Alright, maybe I'll figure something out. Will let you know when I'm finished. |
Pull request is online. Even if you don't know TypeScript, maybe have a look over index.d.ts file, if it is correct. I think you'll understand it more or less. I added typings for methods on VanillaTilt class, which i considered as "public". Am I missing any? static init(elements: HTMLElement | HTMLElement[], settings?: VanillaTilt.TiltOptions): void;
reset(): void;
getValues(): VanillaTilt.TiltValues;
destroy(): void;
addEventListeners(): void;
removeEventListener(): void; |
Merged the request. Thanks! 👍 |
A nice-to-have would be some TypeScript Typings by contributing to the DefinitelyTyped repository. So you have nice support, when you're using TypeScript.
Are you planning to do this?
The text was updated successfully, but these errors were encountered: