@@ -667,7 +667,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
667
667
668
668
[NewObject] Promise<ServiceWorkerRegistration> register(USVString scriptURL, optional RegistrationOptions options = {});
669
669
670
- [NewObject] Promise<any > getRegistration(optional USVString clientURL = "");
670
+ [NewObject] Promise<(ServiceWorkerRegistration or undefined) > getRegistration(optional USVString clientURL = "");
671
671
[NewObject] Promise<FrozenArray<ServiceWorkerRegistration>> getRegistrations();
672
672
673
673
undefined startMessages();
@@ -1275,7 +1275,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
1275
1275
[Exposed=ServiceWorker]
1276
1276
interface Clients {
1277
1277
// The objects returned will be new instances every time
1278
- [NewObject] Promise<any > get(DOMString id);
1278
+ [NewObject] Promise<(Client or undefined) > get(DOMString id);
1279
1279
[NewObject] Promise<FrozenArray<Client>> matchAll(optional ClientQueryOptions options = {});
1280
1280
[NewObject] Promise<WindowClient?> openWindow(USVString url);
1281
1281
[NewObject] Promise<undefined> claim();
@@ -1814,7 +1814,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
1814
1814
<pre class="idl">
1815
1815
[SecureContext, Exposed=(Window,Worker)]
1816
1816
interface Cache {
1817
- [NewObject] Promise<any > match(RequestInfo request, optional CacheQueryOptions options = {});
1817
+ [NewObject] Promise<(Response or undefined) > match(RequestInfo request, optional CacheQueryOptions options = {});
1818
1818
[NewObject] Promise<FrozenArray<Response>> matchAll(optional RequestInfo request, optional CacheQueryOptions options = {});
1819
1819
[NewObject] Promise<undefined> add(RequestInfo request);
1820
1820
[NewObject] Promise<undefined> addAll(sequence<RequestInfo> requests);
@@ -2073,7 +2073,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
2073
2073
<pre class="idl">
2074
2074
[SecureContext, Exposed=(Window,Worker)]
2075
2075
interface CacheStorage {
2076
- [NewObject] Promise<any > match(RequestInfo request, optional MultiCacheQueryOptions options = {});
2076
+ [NewObject] Promise<(Response or undefined) > match(RequestInfo request, optional MultiCacheQueryOptions options = {});
2077
2077
[NewObject] Promise<boolean> has(DOMString cacheName);
2078
2078
[NewObject] Promise<Cache> open(DOMString cacheName);
2079
2079
[NewObject] Promise<boolean> delete(DOMString cacheName);
0 commit comments