Update flow/Set.js definition

Summary: Sync the `Set` definition with the latest flow. https://github.com/facebook/flow/blob/879aa351/lib/core.js#L605-L618

Reviewed By: yungsters

Differential Revision: D4960310

fbshipit-source-id: f7546197e9ebeadbbcc21fa17ad40735659d27df
This commit is contained in:
Andres Suarez 2017-04-27 18:33:06 -07:00 committed by Facebook Github Bot
parent 978592faab
commit ae7edff707
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ declare module "Set" {
// messages about "Using Set instead of Set". // messages about "Using Set instead of Set".
declare class SetPolyfill<T> { declare class SetPolyfill<T> {
@@iterator(): Iterator<T>; @@iterator(): Iterator<T>;
constructor(iterable: ?Iterable<T>): void;
add(value: T): SetPolyfill<T>; add(value: T): SetPolyfill<T>;
clear(): void; clear(): void;
delete(value: T): boolean; delete(value: T): boolean;