@@ -352,7 +352,6 @@ declare class Navigator
352
352
usb?: USB;
353
353
maxTouchPoints: number;
354
354
permissions: Permissions;
355
- serviceWorker?: ServiceWorkerContainer;
356
355
getGamepads?: () => Array<Gamepad | null>;
357
356
webkitGetGamepads?: Function;
358
357
mozGetGamepads?: Function;
@@ -929,84 +928,6 @@ declare class WebSocket extends EventTarget {
929
928
CLOSED: 3;
930
929
}
931
930
932
- type WorkerOptions = {
933
- type?: WorkerType,
934
- credentials?: CredentialsType,
935
- name?: string,
936
- ...
937
- };
938
-
939
- declare class Worker extends EventTarget {
940
- constructor(
941
- stringUrl: string | TrustedScriptURL,
942
- workerOptions?: WorkerOptions,
943
- ): void;
944
- onerror: null | ((ev: any) => mixed);
945
- onmessage: null | ((ev: MessageEvent) => mixed);
946
- onmessageerror: null | ((ev: MessageEvent) => mixed);
947
- postMessage(message: any, ports?: any): void;
948
- terminate(): void;
949
- }
950
-
951
- declare class SharedWorker extends EventTarget {
952
- constructor(stringUrl: string | TrustedScriptURL, name?: string): void;
953
- constructor(
954
- stringUrl: string | TrustedScriptURL,
955
- workerOptions?: WorkerOptions,
956
- ): void;
957
- port: MessagePort;
958
- onerror: (ev: any) => mixed;
959
- }
960
-
961
- declare function importScripts(...urls: Array<string | TrustedScriptURL>): void;
962
-
963
- declare class WorkerGlobalScope extends EventTarget {
964
- self: this;
965
- location: WorkerLocation;
966
- navigator: WorkerNavigator;
967
- close(): void;
968
- importScripts(...urls: Array<string | TrustedScriptURL>): void;
969
- onerror: (ev: any) => mixed;
970
- onlanguagechange: (ev: any) => mixed;
971
- onoffline: (ev: any) => mixed;
972
- ononline: (ev: any) => mixed;
973
- onrejectionhandled: (ev: PromiseRejectionEvent) => mixed;
974
- onunhandledrejection: (ev: PromiseRejectionEvent) => mixed;
975
- }
976
-
977
- declare class DedicatedWorkerGlobalScope extends WorkerGlobalScope {
978
- onmessage: (ev: MessageEvent) => mixed;
979
- onmessageerror: (ev: MessageEvent) => mixed;
980
- postMessage(message: any, transfer?: Iterable<any>): void;
981
- }
982
-
983
- declare class SharedWorkerGlobalScope extends WorkerGlobalScope {
984
- name: string;
985
- onconnect: (ev: MessageEvent) => mixed;
986
- }
987
-
988
- declare class WorkerLocation {
989
- origin: string;
990
- protocol: string;
991
- host: string;
992
- hostname: string;
993
- port: string;
994
- pathname: string;
995
- search: string;
996
- hash: string;
997
- }
998
-
999
- declare class WorkerNavigator
1000
- mixins
1001
- NavigatorID,
1002
- NavigatorLanguage,
1003
- NavigatorOnLine,
1004
- NavigatorConcurrentHardware,
1005
- NavigatorStorage
1006
- {
1007
- permissions: Permissions;
1008
- }
1009
-
1010
931
// deprecated
1011
932
declare class XDomainRequest {
1012
933
timeout: number;
0 commit comments