Fix flow issues following update to 0.68.0
This commit is contained in:
Родитель
12317fb42a
Коммит
f71117e57d
|
@ -2,24 +2,24 @@
|
|||
|
||||
// This file will be automagically used by Flow to type "Notification".
|
||||
declare class Notification {
|
||||
constructor(string, ?Object): Notification,
|
||||
permission: 'denied' | 'granted' | 'default',
|
||||
actions: string[],
|
||||
badge: string,
|
||||
body: string,
|
||||
data: Object,
|
||||
dir: 'ltr' | 'rtl',
|
||||
lang: string,
|
||||
tag: string,
|
||||
icon: string,
|
||||
image: string,
|
||||
requireInteraction: boolean,
|
||||
silent: boolean,
|
||||
timestamp: number,
|
||||
title: string,
|
||||
vibrate: number[],
|
||||
onclick(event: Event): void,
|
||||
onerror(event: Event): void,
|
||||
static requestPermission(): Promise<*>,
|
||||
static close(): void,
|
||||
constructor(string, ?Object): Notification;
|
||||
static permission: "denied" | "granted" | "default";
|
||||
actions: string[];
|
||||
badge: string;
|
||||
body: string;
|
||||
data: Object;
|
||||
dir: "ltr" | "rtl";
|
||||
lang: string;
|
||||
tag: string;
|
||||
icon: string;
|
||||
image: string;
|
||||
requireInteraction: boolean;
|
||||
silent: boolean;
|
||||
timestamp: number;
|
||||
title: string;
|
||||
vibrate: number[];
|
||||
onclick(event: Event): void;
|
||||
onerror(event: Event): void;
|
||||
static requestPermission(): Promise<*>;
|
||||
static close(): void;
|
||||
}
|
||||
|
|
|
@ -16,14 +16,15 @@ type Location = {
|
|||
assign: (url: string) => void,
|
||||
reload: () => void,
|
||||
replace: (url: string) => void,
|
||||
toString: () => string,
|
||||
toString: () => string
|
||||
};
|
||||
|
||||
declare class Window extends EventTarget {
|
||||
innerHeight: number,
|
||||
innerWidth: number,
|
||||
location: Location,
|
||||
onhashchange: (event: Event) => void,
|
||||
innerHeight: number;
|
||||
innerWidth: number;
|
||||
location: Location;
|
||||
onhashchange: (event: Event) => void;
|
||||
__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: any;
|
||||
}
|
||||
|
||||
declare var window: Window;
|
||||
|
|
Загрузка…
Ссылка в новой задаче