Update index.d.ts

Add Worker to SharedWorkerGlobalScope.
This commit is contained in:
Steve Fenton
2018-06-01 13:56:07 +01:00
committed by GitHub
parent 2231f8cf14
commit daf742c844
+1 -1
View File
@@ -16,7 +16,7 @@ declare namespace SharedWorker {
port: MessagePort;
}
interface SharedWorkerGlobalScope {
interface SharedWorkerGlobalScope extends Worker {
onconnect: (event: MessageEvent) => void;
}
}