Skip to content

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