@@ -309,6 +309,17 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
309
309
is ?: string
310
310
}
311
311
312
+ type HTMLAttributeReferrerPolicy =
313
+ | ''
314
+ | 'no-referrer'
315
+ | 'no-referrer-when-downgrade'
316
+ | 'origin'
317
+ | 'origin-when-cross-origin'
318
+ | 'same-origin'
319
+ | 'strict-origin'
320
+ | 'strict-origin-when-cross-origin'
321
+ | 'unsafe-url'
322
+
312
323
export interface AnchorHTMLAttributes extends HTMLAttributes {
313
324
download ?: any
314
325
href ?: string
@@ -318,7 +329,7 @@ export interface AnchorHTMLAttributes extends HTMLAttributes {
318
329
rel ?: string
319
330
target ?: string
320
331
type ?: string
321
- referrerpolicy ?: string
332
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
322
333
}
323
334
324
335
export interface AreaHTMLAttributes extends HTMLAttributes {
@@ -328,6 +339,7 @@ export interface AreaHTMLAttributes extends HTMLAttributes {
328
339
href ?: string
329
340
hreflang ?: string
330
341
media ?: string
342
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
331
343
rel ?: string
332
344
shape ?: string
333
345
target ?: string
@@ -426,7 +438,7 @@ export interface IframeHTMLAttributes extends HTMLAttributes {
426
438
marginheight ?: Numberish
427
439
marginwidth ?: Numberish
428
440
name ?: string
429
- referrerpolicy ?: string
441
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
430
442
sandbox ?: string
431
443
scrolling ?: string
432
444
seamless ?: Booleanish
@@ -440,6 +452,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
440
452
crossorigin ?: 'anonymous' | 'use-credentials' | ''
441
453
decoding ?: 'async' | 'auto' | 'sync'
442
454
height ?: Numberish
455
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
443
456
sizes ?: string
444
457
src ?: string
445
458
srcset ?: string
@@ -514,6 +527,7 @@ export interface LinkHTMLAttributes extends HTMLAttributes {
514
527
hreflang ?: string
515
528
integrity ?: string
516
529
media ?: string
530
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
517
531
rel ?: string
518
532
sizes ?: string
519
533
type ?: string
@@ -614,6 +628,7 @@ export interface ScriptHTMLAttributes extends HTMLAttributes {
614
628
defer ?: Booleanish
615
629
integrity ?: string
616
630
nomodule ?: Booleanish
631
+ referrerpolicy ?: HTMLAttributeReferrerPolicy
617
632
nonce ?: string
618
633
src ?: string
619
634
type ?: string
0 commit comments