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:
parent
978592faab
commit
ae7edff707
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue