Skip to content

Commit

Permalink
Add explicit type for Symbol.iterator in URLSearchParams (#48999)
Browse files Browse the repository at this point in the history
Summary:

Changelog:
[General][Changed] - Added explicit type for Symbol.iterator in URLSearchParams

Differential Revision: D68766996
  • Loading branch information
coado authored and facebook-github-bot committed Jan 28, 2025
1 parent 7016225 commit b3fa099
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-native/Libraries/Blob/URLSearchParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export class URLSearchParams {
}

// $FlowFixMe[unsupported-syntax]
// $FlowFixMe[missing-local-annot]
[Symbol.iterator]() {
[Symbol.iterator](): Iterator<Array<string>> {
return this._searchParams[Symbol.iterator]();
}

Expand Down

0 comments on commit b3fa099

Please sign in to comment.