mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add Prettier to some files
Reviewed By: sahrens Differential Revision: D7958196 fbshipit-source-id: 05a04380a4a1f3abd4cc3a9034fc70deaa4a444b
This commit is contained in:
committed by
Facebook Github Bot
parent
8f5ebe5952
commit
86b6f5d39e
12
flow/Map.js
12
flow/Map.js
@@ -5,23 +5,29 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
// These annotations are copy/pasted from the built-in Flow definitions for
|
||||
// Native Map.
|
||||
|
||||
declare module "Map" {
|
||||
declare module 'Map' {
|
||||
// Use the name "MapPolyfill" so that we don't get confusing error
|
||||
// messages about "Using Map instead of Map".
|
||||
declare class MapPolyfill<K, V> {
|
||||
@@iterator(): Iterator<[K, V]>;
|
||||
constructor<Key, Value>(_: void): MapPolyfill<Key, Value>;
|
||||
constructor<Key, Value>(_: null): MapPolyfill<Key, Value>;
|
||||
constructor<Key, Value>(iterable: Iterable<[Key, Value]>): MapPolyfill<Key, Value>;
|
||||
constructor<Key, Value>(
|
||||
iterable: Iterable<[Key, Value]>,
|
||||
): MapPolyfill<Key, Value>;
|
||||
clear(): void;
|
||||
delete(key: K): boolean;
|
||||
entries(): Iterator<[K, V]>;
|
||||
forEach(callbackfn: (value: V, index: K, map: MapPolyfill<K, V>) => mixed, thisArg?: any): void;
|
||||
forEach(
|
||||
callbackfn: (value: V, index: K, map: MapPolyfill<K, V>) => mixed,
|
||||
thisArg?: any,
|
||||
): void;
|
||||
get(key: K): V | void;
|
||||
has(key: K): boolean;
|
||||
keys(): Iterator<K>;
|
||||
|
||||
Reference in New Issue
Block a user