-
Notifications
You must be signed in to change notification settings - Fork 89
fix: FormData::entries()
, FormData::[Symbol.iterator]()
#175
Conversation
Oh hmm, we don't run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! ✅
You're right, seems like we only check the overrides are valid TypeScript in CI, not that they type check with the tests. 🙁
npm test
is all set up for that though, so should just be a case of adding that to the workflow.
|
One of the problems with this PR, is the test will fail until the overrides are applied to the root |
The types for `FormData::entries()`, `FormData::[Symbol.iterator]()` are marked as arrays of IterableIterators, which doesn't seem right. This PR removes the array notation, and adds tests for the both of them.
3618e6b
to
fa4307f
Compare
🦋 Changeset detectedLatest commit: 26b78d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Commented out the failing tests, will uncomment after the next round of overrides are applied. We should revisit this and figure something better later. |
We'd added the tests in #175, but they were commented out because the overrides weren't applied. This PR applies the overrides to `index.d.ts`, so we can enable those tests now.
Enabled the tests in #186. (We should still revisit) |
* Updated types for 2022-01-19 * Enable tests for `FormData::entries()`, `FormData::[Symbol.iterator]()` We'd added the tests in #175, but they were commented out because the overrides weren't applied. This PR applies the overrides to `index.d.ts`, so we can enable those tests now. Co-authored-by: autodecl-bot[bot] <91285878+autodecl-bot[bot]@users.noreply.github.com> Co-authored-by: Sunil Pai <spai@cloudflare.com>
FWIW |
Mind if I catch up with you tomorrow on this @vlovich? |
The types for
FormData::entries()
,FormData::[Symbol.iterator]()
are marked as arrays of IterableIterators, which doesn't seem right. This PR removes the array notation, and adds tests for the both of them.