Add Typescript definitions #138
Reference in New Issue
Block a user
Delete Branch "feature/ts-defs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Never mind.
According to Typescript's documentation, if the package is not written in Typescript, it's preferable to add the type definitions to the DefinitelyTyped repo.
Actually, DefinitelyTyped's recommendation is:
So I'm reopening this PR to add the definitions here.
LGTM, though I'm not a Typescript user. You might want to add a note to the readme to the effect that any PRs should ideally include updated Typescript definitions if necessary, in addition to passing tests.
I'm going to try to figure out if there's an easy way to write tests for this. Then we could include that in the testing workflow.
Great, sounds good to me. Feel free to merge when you're happy!
I haven't added any tooling for actually running or automating the tests. To run it, Typescript would need to be installed, and I don't want to deal with that now.
To run it manually, install Typescript (either locally or globally), and then run: