Unable to add generic function overload for module default export #31307
Labels
Bug
A bug in TypeScript
checkJs
Relates to checking JavaScript using TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Domain: Type Inference
Related to type inference performed during signature resolution or `infer` type resolution
Milestone
TypeScript Version: 3.5.0-dev.20190508
Search Terms: module add overload
Code
Expected behavior:
a
should beHTMLAnchorElement
.Actual behavior:
Error: Type 'HTMLElement' is missing the following properties from type 'HTMLAnchorElement': ...
The text was updated successfully, but these errors were encountered: