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 tsd for type declaration tests #14

Merged
merged 1 commit into from Aug 19, 2019

Conversation

tomasz-zablocki
Copy link
Contributor

Please make sure to run the tests (including linter)

Tests and linter are intact, although there's no ts or d.ts linting yet.

Summary of proposed changes

  • integrated tsd into typescript-decl branch
  • added usage example
  • removed tsconfig.json since no compilation occurs aside from tsd
  • fixed exports in existing type declarations to match represented package

Issue

related to #13

How to test the changes

npm test

@berniegp
Copy link
Owner

Thank you so much for this! Unfortunately, I'm currently away from my "production environment" on vacation so I can't really check it out until next Tuesday. I'll check this out and read more carefully and reply to your other comments in #13 at that time.

Thanks again for your help!

@tomasz-zablocki
Copy link
Contributor Author

@berniegp no worries, enjoy your holiday !

@@ -50,10 +52,21 @@
"rollup": "^1.16.4",
"rollup-plugin-buble": "^0.19.8",
"rollup-plugin-replace": "^2.2.0",
"typescript": "^3.5.3",
Copy link
Owner

Choose a reason for hiding this comment

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

I had locked typescript to 3.4.5 because of this issue:
microsoft/TypeScript#31722
There is indeed no impact on this project so let's move up the version.

types/MockXhrServer.d.ts Show resolved Hide resolved
types/test/XMLHttpRequest-compat.test-d.ts Show resolved Hide resolved
@berniegp berniegp merged commit 672238d into berniegp:typescript-decl Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants