This issue appears when I updated typescript from v5.0.4 to v5.1.3.
now when I run the typecehck tsc --noEmit I got this error
src/Button.tsx:19:7 - error TS2322: Type 'true' is not assignable to type 'string | number | symbol | never[] | undefined'.
19 disabled: true,
~~~~~~~~
Found 1 error in src/Button.tsx:19
this button component is exactly the live example on the documentation here
Describe the bug
This issue appears when I updated typescript from
v5.0.4
tov5.1.3
. now when I run the typecehcktsc --noEmit
I got this errorthis button component is exactly the live example on the documentation here
To Reproduce Steps to reproduce the behavior:
pnpm typecheck
Expected behavior error should not happen
Additional context Add any other context about the problem here.