Skip to content

Commit

Permalink
feat: more img attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Oct 13, 2023
1 parent 2b0bd65 commit d9f2f62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
// Missing something? Please submit a issue report or a PR:
// https://github.com/kitajs/html

/** Same as a string type but allows autocompletion of literal values */
type AnyString = string & {};

declare namespace JSX {
/**
* A {@linkcode JSX.Element} will always be a string, unless one of its children is a
Expand Down Expand Up @@ -196,6 +199,9 @@ declare namespace JSX {
ismap?: undefined | string;
width?: undefined | number | string;
height?: undefined | number | string;
decoding?: 'sync' | 'async' | 'auto' | AnyString;
loading?: 'eager' | 'lazy' | AnyString;
srcset?: string;
}

interface HtmlInputTag extends HtmlTag {
Expand Down

0 comments on commit d9f2f62

Please sign in to comment.