Skip to content

Commit

Permalink
fix(types): add or update referrerpolicy (vuejs#7199)
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eny0ung authored and chrislone committed Feb 4, 2023
1 parent 8f17c75 commit 21faf27
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions packages/runtime-dom/types/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,17 @@ export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
is?: string
}

type HTMLAttributeReferrerPolicy =
| ''
| 'no-referrer'
| 'no-referrer-when-downgrade'
| 'origin'
| 'origin-when-cross-origin'
| 'same-origin'
| 'strict-origin'
| 'strict-origin-when-cross-origin'
| 'unsafe-url'

export interface AnchorHTMLAttributes extends HTMLAttributes {
download?: any
href?: string
Expand All @@ -318,7 +329,7 @@ export interface AnchorHTMLAttributes extends HTMLAttributes {
rel?: string
target?: string
type?: string
referrerpolicy?: string
referrerpolicy?: HTMLAttributeReferrerPolicy
}

export interface AreaHTMLAttributes extends HTMLAttributes {
Expand All @@ -328,6 +339,7 @@ export interface AreaHTMLAttributes extends HTMLAttributes {
href?: string
hreflang?: string
media?: string
referrerpolicy?: HTMLAttributeReferrerPolicy
rel?: string
shape?: string
target?: string
Expand Down Expand Up @@ -426,7 +438,7 @@ export interface IframeHTMLAttributes extends HTMLAttributes {
marginheight?: Numberish
marginwidth?: Numberish
name?: string
referrerpolicy?: string
referrerpolicy?: HTMLAttributeReferrerPolicy
sandbox?: string
scrolling?: string
seamless?: Booleanish
Expand All @@ -440,6 +452,7 @@ export interface ImgHTMLAttributes extends HTMLAttributes {
crossorigin?: 'anonymous' | 'use-credentials' | ''
decoding?: 'async' | 'auto' | 'sync'
height?: Numberish
referrerpolicy?: HTMLAttributeReferrerPolicy
sizes?: string
src?: string
srcset?: string
Expand Down Expand Up @@ -514,6 +527,7 @@ export interface LinkHTMLAttributes extends HTMLAttributes {
hreflang?: string
integrity?: string
media?: string
referrerpolicy?: HTMLAttributeReferrerPolicy
rel?: string
sizes?: string
type?: string
Expand Down Expand Up @@ -614,6 +628,7 @@ export interface ScriptHTMLAttributes extends HTMLAttributes {
defer?: Booleanish
integrity?: string
nomodule?: Booleanish
referrerpolicy?: HTMLAttributeReferrerPolicy
nonce?: string
src?: string
type?: string
Expand Down

0 comments on commit 21faf27

Please sign in to comment.