@@ -781,13 +781,13 @@ declare var ByteLengthQueuingStrategy: {
781781 * Available only in secure contexts.
782782 */
783783interface Cache {
784- add ( request : RequestInfo ) : Promise < void > ;
784+ add ( request : RequestInfo | URL ) : Promise < void > ;
785785 addAll ( requests : RequestInfo [ ] ) : Promise < void > ;
786- delete ( request : RequestInfo , options ?: CacheQueryOptions ) : Promise < boolean > ;
787- keys ( request ?: RequestInfo , options ?: CacheQueryOptions ) : Promise < ReadonlyArray < Request > > ;
788- match ( request : RequestInfo , options ?: CacheQueryOptions ) : Promise < Response | undefined > ;
789- matchAll ( request ?: RequestInfo , options ?: CacheQueryOptions ) : Promise < ReadonlyArray < Response > > ;
790- put ( request : RequestInfo , response : Response ) : Promise < void > ;
786+ delete ( request : RequestInfo | URL , options ?: CacheQueryOptions ) : Promise < boolean > ;
787+ keys ( request ?: RequestInfo | URL , options ?: CacheQueryOptions ) : Promise < ReadonlyArray < Request > > ;
788+ match ( request : RequestInfo | URL , options ?: CacheQueryOptions ) : Promise < Response | undefined > ;
789+ matchAll ( request ?: RequestInfo | URL , options ?: CacheQueryOptions ) : Promise < ReadonlyArray < Response > > ;
790+ put ( request : RequestInfo | URL , response : Response ) : Promise < void > ;
791791}
792792
793793declare var Cache : {
@@ -803,7 +803,7 @@ interface CacheStorage {
803803 delete ( cacheName : string ) : Promise < boolean > ;
804804 has ( cacheName : string ) : Promise < boolean > ;
805805 keys ( ) : Promise < string [ ] > ;
806- match ( request : RequestInfo , options ?: MultiCacheQueryOptions ) : Promise < Response | undefined > ;
806+ match ( request : RequestInfo | URL , options ?: MultiCacheQueryOptions ) : Promise < Response | undefined > ;
807807 open ( cacheName : string ) : Promise < Cache > ;
808808}
809809
@@ -2652,7 +2652,7 @@ interface Request extends Body {
26522652
26532653declare var Request : {
26542654 prototype : Request ;
2655- new ( input : RequestInfo , init ?: RequestInit ) : Request ;
2655+ new ( input : RequestInfo | URL , init ?: RequestInit ) : Request ;
26562656} ;
26572657
26582658/** This Fetch API interface represents the response to a request. */
@@ -5128,7 +5128,7 @@ interface WindowOrWorkerGlobalScope {
51285128 clearTimeout ( id ?: number ) : void ;
51295129 createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
51305130 createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5131- fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
5131+ fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > ;
51325132 queueMicrotask ( callback : VoidFunction ) : void ;
51335133 reportError ( e : any ) : void ;
51345134 setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
@@ -5498,7 +5498,7 @@ declare function clearInterval(id?: number): void;
54985498declare function clearTimeout ( id ?: number ) : void ;
54995499declare function createImageBitmap ( image : ImageBitmapSource , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
55005500declare function createImageBitmap ( image : ImageBitmapSource , sx : number , sy : number , sw : number , sh : number , options ?: ImageBitmapOptions ) : Promise < ImageBitmap > ;
5501- declare function fetch ( input : RequestInfo , init ?: RequestInit ) : Promise < Response > ;
5501+ declare function fetch ( input : RequestInfo | URL , init ?: RequestInit ) : Promise < Response > ;
55025502declare function queueMicrotask ( callback : VoidFunction ) : void ;
55035503declare function reportError ( e : any ) : void ;
55045504declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
0 commit comments