-
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #13
Comments
Not a TS guy. Can you explain the issue a little more deeply? |
same, need ts |
Ok guys I hear the request. Not a TS guy myself and don't have any need of it for my own projects, but I'm happy to roll a revision in if you care to make it. That said: why is it so important? The code works and the JSDoc provides intellisense support. Shouldn't TS just bundle this package as-is? Makes me wonder if there's an issue with the package config. |
in ourselves project, this will be throw an error message and highline code |
Hm ok I think I caught the gist of that. Making this thing work with TS is probably more than I am equipped to take on. That will require the assistance of somebody who is familiar with TS, although I would LOVE to learn what I'm doing that is breaking TS! A suggestion: the project isn't really super complicated. You could probably fork it and in an afternoon either...
If you do number 2 I would be delighted to review & incorporate your changes. |
P.S. Another thought... have you updated to the latest release? I populated the deprecated |
To get this halfway there, you can add the types manually. Create a global.d.ts file and add this
Then pass in a type when calling deserify. const date = deserify< Date >(selectDate); |
@drabelogarner that's a great idea thank you!! Standing by for your PR. 😁 |
For those of you who are still paying attention: I guess now I'm a TypeScript guy. 🤣 Should have a TS release of this in a few days! |
…factor Feature/gh 13 typescript refactor
This is done! |
Typescript would be great here.
The text was updated successfully, but these errors were encountered: