Add Prettier to some files

Reviewed By: sahrens

Differential Revision: D7958196

fbshipit-source-id: 05a04380a4a1f3abd4cc3a9034fc70deaa4a444b
This commit is contained in:
Eli White
2018-05-10 15:44:53 -07:00
committed by Facebook Github Bot
parent 8f5ebe5952
commit 86b6f5d39e
10 changed files with 71 additions and 44 deletions

View File

@@ -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>;