Skip to content

Commit 76dc3c0

Browse files
committed
[flow] Upgrade from 0.279 -> 0.280
Flow 0.280 introduced stricter type checking for `incompatible-type` errors, requiring additional $FlowFixMe suppressions alongside existing ones. Changes: - Made `QueuingStrategy` properties optional in streams.js - Made all properties optional in Web Animations API types (EffectTiming, KeyframeAnimationOptions, etc.) - Added `$FlowFixMe[incompatible-type]` alongside existing suppressions in multiple files where Flow now reports additional type mismatches
1 parent 55480b4 commit 76dc3c0

File tree

73 files changed

+2993
-4652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2993
-4652
lines changed

flow-typed/environments/bom.js

Lines changed: 800 additions & 1036 deletions
Large diffs are not rendered by default.

flow-typed/environments/dom.js

Lines changed: 1136 additions & 2045 deletions
Large diffs are not rendered by default.

flow-typed/environments/html.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ declare class DataTransferItem {
4545
getAsFileSystemHandle?: () => Promise<?FileSystemHandle>;
4646
}
4747

48-
declare type DOMStringMap = {[key: string]: string, ...};
48+
declare type DOMStringMap = { [key: string]: string, ... };
4949

5050
declare class DOMStringList {
5151
@@iterator(): Iterator<string>;
@@ -55,7 +55,7 @@ declare class DOMStringList {
5555
contains(string): boolean;
5656
}
5757

58-
declare type ElementDefinitionOptions = {|extends?: string|};
58+
declare type ElementDefinitionOptions = {| extends?: string |};
5959

6060
declare interface CustomElementRegistry {
6161
define(
@@ -71,7 +71,7 @@ declare interface CustomElementRegistry {
7171
declare class EventSource extends EventTarget {
7272
constructor(
7373
url: string,
74-
configuration?: {withCredentials: boolean, ...}
74+
configuration?: { withCredentials: boolean, ... }
7575
): void;
7676
+CLOSED: 2;
7777
+CONNECTING: 0;
@@ -145,7 +145,7 @@ declare class ToggleEvent extends Event {
145145
}
146146

147147
// TODO: HTMLDocument
148-
type FocusOptions = {preventScroll?: boolean, ...};
148+
type FocusOptions = { preventScroll?: boolean, ... };
149149

150150
declare class HTMLElement extends Element {
151151
blur(): void;
@@ -154,10 +154,10 @@ declare class HTMLElement extends Element {
154154
getBoundingClientRect(): DOMRect;
155155
forceSpellcheck(): void;
156156

157-
showPopover(options?: {|source?: HTMLElement|}): void;
157+
showPopover(options?: {| source?: HTMLElement |}): void;
158158
hidePopover(): void;
159159
togglePopover(
160-
options?: boolean | {|force?: boolean, source?: HTMLElement|}
160+
options?: boolean | {| force?: boolean, source?: HTMLElement |}
161161
): boolean;
162162

163163
accessKey: string;
@@ -261,7 +261,7 @@ declare class HTMLElement extends Element {
261261

262262
declare class HTMLSlotElement extends HTMLElement {
263263
name: string;
264-
assignedNodes(options?: {flatten: boolean, ...}): Node[];
264+
assignedNodes(options?: { flatten: boolean, ... }): Node[];
265265
}
266266

267267
declare class HTMLTableElement extends HTMLElement {
@@ -1566,7 +1566,7 @@ declare function requestIdleCallback(
15661566
timeRemaining: () => number,
15671567
...
15681568
}) => void,
1569-
opts?: {timeout: number, ...}
1569+
opts?: { timeout: number, ... }
15701570
): IdleCallbackID;
15711571
declare function cancelIdleCallback(id: IdleCallbackID): void;
15721572
declare var localStorage: Storage;

0 commit comments

Comments
 (0)