Skip to content
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

add type checking & declarations #7

Merged
merged 2 commits into from
Oct 21, 2019
Merged

Conversation

dbushong
Copy link
Member

  • chore: upgrade pkg details
  • refactor: add typedefs and make type-safe

Also had to upgrade to preact 10.0.1 because they changed the VNode definition a bit (removed a | null), so we might as well be based on the latest one in our declarations.

Incidentally we now require node 8.


This PR was started by: git wf pr

@@ -52,5 +66,6 @@ const TAG_NAMES =
exports.h = h;

TAG_NAMES.split('|').forEach(tag => {
// @ts-ignore
exports[tag] = hh.bind(null, tag);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the type declarations for this will be huge, since we'll have to explicitly split out all the tags; if we end up adding that later, we'll fix up the types in this file

Copy link

@erothman-groupon erothman-groupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@aotarola aotarola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💚

@dbushong dbushong merged commit e71d714 into master Oct 21, 2019
@dbushong dbushong deleted the dbushong/feature/master/types branch October 21, 2019 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants