-
<Select type="single" bind:value={serverUrl}>i'm getting this error Type 'string | null' is not assignable to type 'string | undefined'. Type 'null' is not assignable to type 'string | undefined'.ts(2322)
|
Beta Was this translation helpful? Give feedback.
Answered by huntabyte Aug 2, 2025
Replies: 1 comment 2 replies
-
| yeah, use a function binding and coerce the type <Select type="single" bind:value={() => serverUrl ?? '', (v) => { serverUrl = v }}> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by nooblyf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
yeah, use a function binding and coerce the type