forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed By: gabelevi Differential Revision: D3021265 fb-gh-sync-id: f4c857505c1a7b6b813bcdccd629e595ef7a81af shipit-source-id: f4c857505c1a7b6b813bcdccd629e595ef7a81af
- Loading branch information
Showing
18 changed files
with
93 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
// @nolint | ||
|
||
// These annotations are copy/pasted from the built-in Flow definitions for | ||
// Native 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: Array<[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; | ||
get(key: K): V | void; | ||
has(key: K): boolean; | ||
keys(): Iterator<K>; | ||
set(key: K, value: V): MapPolyfill<K, V>; | ||
size: number; | ||
values(): Iterator<V>; | ||
} | ||
|
||
// Don't "declare class exports" directly, otherwise in error messages our | ||
// show up as "exports" instead of "Map" or "MapPolyfill". | ||
declare var exports: typeof MapPolyfill; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
// @nolint | ||
|
||
// These annotations are copy/pasted from the built-in Flow definitions for | ||
// Native Set. | ||
|
||
declare module "Set" { | ||
// Use the name "SetPolyfill" so that we don't get confusing error | ||
// messages about "Using Set instead of Set". | ||
declare class SetPolyfill<T> { | ||
@@iterator(): Iterator<T>; | ||
add(value: T): SetPolyfill<T>; | ||
clear(): void; | ||
delete(value: T): boolean; | ||
entries(): Iterator<[T, T]>; | ||
forEach(callbackfn: (value: T, index: T, set: SetPolyfill<T>) => mixed, thisArg?: any): void; | ||
has(value: T): boolean; | ||
keys(): Iterator<T>; | ||
size: number; | ||
values(): Iterator<T>; | ||
} | ||
|
||
// Don't "declare class exports" directly, otherwise in error messages our | ||
// show up as "exports" instead of "Set" or "SetPolyfill". | ||
declare var exports: typeof SetPolyfill; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// temporary patches for React.Component and React.Element | ||
declare var ReactComponent: typeof React$Component; | ||
declare var ReactElement: typeof React$Element; |