-
Notifications
You must be signed in to change notification settings - Fork 8
Tests should reject unqualified use of undefined interfaces #34
Comments
totally misread it. before we do that we need to make sure all libraries can abide by it. not sure this would be the case, at least for some of the polyfills like core-js that really need to define Symbol. |
As I remember the problems revolved around dependency on these symbols, not definition of them. That said, how polyfills should work for TypeScript is still very unclear to me, but I'm not saying that the Perhaps a |
Can you elaborate? |
Sure @mhegazy, I'll try again. Lets take issue DefinitelyTyped/DefinitelyTyped#10919 for example. It appears that a change to the I'm suggesting that perhaps something should be done to prevent the hard-to-interpret error that results when an existing definitions file is upgraded to take a new dependency on ES2015. I.e. maybe there should be some qualifier in the package that explicitly says if it requires ES2015, (or a polyfill.) But no matter how that's resolved, I wasn't proposing generating errors for a polyfill(s) that define |
The test tool seems to allow definitions to use undefined and unqualified interfaces like
IterableIterater<T>
,Symbol
, and evenReadableStream
.Should it?! This seems to lead to issues like DefinitelyTyped/DefinitelyTyped#10919.
The text was updated successfully, but these errors were encountered: