Skip to content

Add TypeScript definitions for v6 packages #430

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

Conversation

notheotherben
Copy link
Contributor

@notheotherben notheotherben commented Aug 29, 2017

This PR should provide comprehensive TypeScript definitions for the various packages included in v6.x (as requested in #428). It places an emphasis on minimizing the number of type definitions required to reduce package installation type as much as possible for customers (both those who use TypeScript and those who do not).

I have included a rudimentary type test suite which draws examples from the USE_CASES.md file to ensure that all known use cases work correctly with the library.

I also spent a lot of time confirming that the type definitions match the official API in terms of type constraints and required values. As such, there should be no issues with missing types or incorrect values.

Please have a look and confirm that you're satisfied with the structure and layout of the types, the current layout should help ensure that they are more easily maintainable by those unfamiliar with TypeScript or the project itself.

Please also take note that these types are only tested and confirmed to work with the latest version of TypeScript (v2.4.2 at the time of writing) and are not expected to function with out of date versions. As the TypeScript community tends to remain up to date for the most part, I don't foresee this being an issue, but let me know if it is.

@notheotherben notheotherben changed the title [WIP] Add TypeScript definitions for v6 packages Add TypeScript definitions for v6 packages Aug 29, 2017
@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Aug 29, 2017
@thinkingserious thinkingserious merged commit f61bd62 into sendgrid:master Aug 30, 2017
@thinkingserious
Copy link
Contributor

Hello @spartan563,

Thanks again for the PR!

We appreciate your contribution and look forward to continued collaboration. Thanks!

Team SendGrid DX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: code review request requesting a community code review or review from Twilio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants