Fix flow issues following update to 0.68.0

This commit is contained in:
Mathieu Agopian 2018-03-16 09:58:01 +01:00
Родитель 12317fb42a
Коммит f71117e57d
2 изменённых файлов: 26 добавлений и 25 удалений

40
flow-typed/overrides/Notification.js поставляемый
Просмотреть файл

@ -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;
}

11
flow-typed/overrides/Window.js поставляемый
Просмотреть файл

@ -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;