-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript - Error: Property 'value' does not exist on type 'Option'. Did you mean 'valueOf'? #287
Comments
can you provide a repro? either a Svelte REPL or a code snippet? i don't see how 1b04c15 would have caused this |
My mistake, the error's gone now. I must've had something inconsistent |
Actually, the error is still there. He's a minimal example <MultiSelect
options={[{value: 'abc', label: 'abc'}]}
on:add={(event) => {
// if you want to persist new user entered custom options to a database, perform
// a fetch request with type POST here using the event.detail.option payload
console.log(event.detail.option.value)
}}
/> |
the error doesn't repro for me. i pasted your snippet into a REPL and tried with versions 10.2.0 and 10.3.0. both work fine. |
It's a typescript error. Is there a way to get typescript into that REPL? |
sorry should have paid more attention to the issue title. the REPL doesn't support TS. but i can repro the type error. not sure what changed, needs some investigation (and better tests for the future) |
Started getting this error with 10.3.0. I believe the culprit is 1b04c15, which isn't in the changelog. Was it included intentionally?
The text was updated successfully, but these errors were encountered: