Skip to content

Commit dee5673

Browse files
devluxLuca Marinucci
andauthored
fix max and min type definition to allow number (#4598)
Co-authored-by: Luca Marinucci <[email protected]>
1 parent b864138 commit dee5673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jsx.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,8 +1909,8 @@ export namespace JSXInternal {
19091909
form?: Signalish<string | undefined>;
19101910
high?: Signalish<number | undefined>;
19111911
low?: Signalish<number | undefined>;
1912-
max?: Signalish<string | undefined>;
1913-
min?: Signalish<string | undefined>;
1912+
max?: Signalish<number | string | undefined>;
1913+
min?: Signalish<number | string | undefined>;
19141914
optimum?: Signalish<number | undefined>;
19151915
value?: Signalish<string | number | undefined>;
19161916
}
@@ -1965,7 +1965,7 @@ export namespace JSXInternal {
19651965

19661966
interface ProgressHTMLAttributes<T extends EventTarget>
19671967
extends HTMLAttributes<T> {
1968-
max?: Signalish<string | undefined>;
1968+
max?: Signalish<number | string | undefined>;
19691969
value?: Signalish<string | number | undefined>;
19701970
}
19711971

0 commit comments

Comments
 (0)