Skip to content

Commit 65d60fb

Browse files
authoredAug 16, 2023
fix(typings): add crossorigin html attr to img (#4686)
this commit adds the `crossorigin` html attribute for image tages (`img`) to stencil's public runtime typings. upon applying this commit, projects using stencil should be able to type the following in their `render` function and not receive a typing error: ```tsx render() { return <img crossorigin="anonymous"></img> } ``` Fixes: #4685
1 parent 7e9544d commit 65d60fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/declarations/stencil-public-runtime.ts

+2
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,8 @@ export namespace JSXBase {
971971

972972
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
973973
alt?: string;
974+
crossOrigin?: string;
975+
crossorigin?: string;
974976
decoding?: 'async' | 'auto' | 'sync';
975977
importance?: 'low' | 'auto' | 'high';
976978
height?: number | string;

0 commit comments

Comments
 (0)
Please sign in to comment.