You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When following the example code, a typescript error 2322 occurs when assigning {person} to the value parameter.
The specific error states:
Type '{ id: number; name: string; unavailable: boolean; }' is not assignable to type 'string | number | string[] | null | undefined'.ts(2322)
(property) value: string | number | string[] | null | undefined
To Reproduce
Create an empty svelte application: pnpm create svelte@latest headless1-app
cd into app, then add
pnpm install @rgossiaux/svelte-headlessui
Copy and paste the sample code into VSCode editor. The error occurs immediately. package.json to follow.
Describe the bug
When following the example code, a typescript error 2322 occurs when assigning {person} to the value parameter.
The specific error states:
To Reproduce
pnpm create svelte@latest headless1-app
Please share one of:
Library version
2.0.0
The text was updated successfully, but these errors were encountered: