Skip to content

Commit dc36d0c

Browse files
authored
fix: typings for naturalWidth/Height bindings
follow-up to #7857
1 parent b5b0d1f commit dc36d0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elements/index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
707707
srcset?: string | undefined | null;
708708
usemap?: string | undefined | null;
709709
width?: number | string | undefined | null;
710+
711+
readonly 'bind:naturalWidth'?: number | undefined | null;
712+
readonly 'bind:naturalHeight'?: number | undefined | null;
710713
}
711714

712715
export interface HTMLInsAttributes extends HTMLAttributes<HTMLModElement> {

0 commit comments

Comments
 (0)