Skip to content

Commit 3ed82f1

Browse files
authored
fix(types): add referrerPolicy to ImgHTMLAttributes (#6694)
Mirror the existing declarations on AnchorHTMLAttributes and IframeHTMLAttributes so <img referrerpolicy="..."> type-checks without an `as any` cast. The ReferrerPolicy type is provided by the TypeScript DOM lib; no runtime impact. fixes: #6692
1 parent a1589d9 commit 3ed82f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/declarations/stencil-public-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ export namespace JSXBase {
12061206
importance?: 'low' | 'auto' | 'high';
12071207
height?: number | string;
12081208
loading?: 'lazy' | 'auto' | 'eager';
1209+
referrerPolicy?: ReferrerPolicy;
12091210
sizes?: string;
12101211
src?: string;
12111212
srcSet?: string;

0 commit comments

Comments
 (0)