I wanted to try out Temporal in TypeScript so I built a .d.ts file for the object model.
Any interest in a PR that adds typescript types to the polyfill?
Here's an early draft: https://gist.github.com/justingrant/a7fe21bd9105b60e92aa6ca0d0edd4b2
I'm not opposed to adding a .d.ts file to the project. If anything, it'll help people with compatible text editors, and since we're planning on locking down the API surface soon-ish, I think the maintenance burden would be pretty minimal too! @justingrant would you mind making a PR referencing this issue?
I am also OK with this for the same reasons @ryzokuken mentioned, it should make type hintings a lot easier for those working with the Polyfill and there shouldn't be a lot of changes at this point.
OK sounds good. I'll pull a PR together later this week once I've had the chance to use the typings a little bit in order to iron out any obvious bugs.
OK, draft typings are in.
Most helpful comment
OK sounds good. I'll pull a PR together later this week once I've had the chance to use the typings a little bit in order to iron out any obvious bugs.