Skip to content

Fix tsc error in Pages/Auth/Login.tsx on fresh install#457

Merged
taylorotwell merged 1 commit intolaravel:2.xfrom
MariosIgkiempor:patch-1
Jan 26, 2025
Merged

Fix tsc error in Pages/Auth/Login.tsx on fresh install#457
taylorotwell merged 1 commit intolaravel:2.xfrom
MariosIgkiempor:patch-1

Conversation

@MariosIgkiempor
Copy link
Contributor

Typescript treats the remember: false as a literal type in the useForm call, which makes tsc fail when the checkbox calls setData with a boolean.

This happens on a fresh install:

  • Laravel Installer 5.11.1
  • Composer version 2.8.4
  • Typescript 5.0.2
  • "aravel/breeze 2.3.2

This commit tells typescript to treat false as a boolean, which fixes the tsc error and makes npm run build pass

Typescript treats the `remember: false` as a literal type in the useForm call, which makes `tsc` fail when the checkbox calls `setData` with a boolean.

This commit tells `tsc` to treat false as a boolean, which fixes the `tsc` error and makes `npm run build` pass
@taylorotwell taylorotwell merged commit c40f7fc into laravel:2.x Jan 26, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants