Skip to content

Commit

Permalink
fix(typings): add crossorigin html attr to img (#4686)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rwaskiewicz committed Aug 16, 2023
1 parent 7e9544d commit 65d60fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/declarations/stencil-public-runtime.ts
Expand Up @@ -971,6 +971,8 @@ export namespace JSXBase {

export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
alt?: string;
crossOrigin?: string;
crossorigin?: string;
decoding?: 'async' | 'auto' | 'sync';
importance?: 'low' | 'auto' | 'high';
height?: number | string;
Expand Down

0 comments on commit 65d60fb

Please sign in to comment.