File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed
Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export interface PreloadOptions {
8484 type ?: string | undefined ;
8585 nonce ?: string | undefined ;
8686 referrerPolicy ?: ReferrerPolicy | undefined ;
87+ media ?: string | undefined ;
8788}
8889export function preload ( href : string , options ?: PreloadOptions ) : void ;
8990
Original file line number Diff line number Diff line change @@ -528,6 +528,7 @@ function preloadTest() {
528528 imageSrcSet : "fooset" ,
529529 imageSizes : "foosizes" ,
530530 referrerPolicy : "no-referrer" ,
531+ media : "(max-width: 600px)" ,
531532 } ) ;
532533 ReactDOM . preload ( "foo" , {
533534 as : "image" ,
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ declare module "." {
7070 type ?: string | undefined ;
7171 nonce ?: string | undefined ;
7272 referrerPolicy ?: ReferrerPolicy | undefined ;
73+ media ?: string | undefined ;
7374 }
7475 function preload ( href : string , options ?: PreloadOptions ) : void ;
7576
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ function preloadTest() {
2626 imageSrcSet : "fooset" ,
2727 imageSizes : "foosizes" ,
2828 referrerPolicy : "no-referrer" ,
29+ media : "(max-width: 600px)" ,
2930 } ) ;
3031 ReactDOM . preload ( "foo" , {
3132 as : "image" ,
You can’t perform that action at this time.
0 commit comments