mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c925872e72
commit
89af3e804f
+1
-2
@@ -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]();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user