Add explicit type for Symbol.iterator in URLSearchParams (#48999)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/48999

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

Reviewed By: cortinico

Differential Revision: D68766996

fbshipit-source-id: 47aeed737134628b838e9382b04e0bb95513bee0
This commit is contained in:
Dawid Małecki
2025-01-28 08:07:13 -08:00
committed by Facebook GitHub Bot
parent c925872e72
commit 89af3e804f
+1 -2
View File
@@ -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]();
}