Typing module.hot for TypeScript #11836
edemaine
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
Typing A few notes though:
With these changes, you can file a PR to DefinitelyTyped and any of the package owners (including myself) will be able to review it. Just remember to add tests as well, so we can merge it without DefinitelyTyped maintainers! Also, in most cases, you don't need the It looks like this |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
module.hot
from hot-module-replacement is undeclared from a TypeScript perspective. I could manually declare it as follows:(I think I got everything right, but it's worth double checking.)
I'm unfamiliar with contributing to DefinitelyTyped, and perhaps the PR should come from a Meteor dev?
Modeling after
types/node/globals.d.ts
, it looks like we need a new file intypes/meteor
calledglobal.d.ts
with the declaration above, and then users'tsconfig.json
will need to change fromto
Is this correct?
@zodern
Beta Was this translation helpful? Give feedback.
All reactions