From d271923fede22b808ae33c7075ad94427405039a Mon Sep 17 00:00:00 2001 From: Quang Phan Date: Fri, 14 Oct 2022 14:55:18 +0700 Subject: [PATCH] chore: even better typing for multiple & selected/value props (thanks to Hofer Ivan) ref: https://github.com/sveltejs/language-tools/issues/442#issuecomment-1278507804 --- .../svelte-kit/src/routes/select/+page.svelte | 6 +++-- .../src/routes/select/Select.svelte | 3 ++- .../src/routes/select/Select.types.ts | 26 +++++++------------ 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/apps/svelte-kit/src/routes/select/+page.svelte b/apps/svelte-kit/src/routes/select/+page.svelte index a1d674f7..93ae601f 100644 --- a/apps/svelte-kit/src/routes/select/+page.svelte +++ b/apps/svelte-kit/src/routes/select/+page.svelte @@ -129,7 +129,8 @@ - + diff --git a/apps/svelte-kit/src/routes/select/Select.svelte b/apps/svelte-kit/src/routes/select/Select.svelte index cb2a9551..5bfd5451 100644 --- a/apps/svelte-kit/src/routes/select/Select.svelte +++ b/apps/svelte-kit/src/routes/select/Select.svelte @@ -8,8 +8,9 @@ type Value = $$Generic; type Option = $$Generic>; + type Multiple = $$Generic; - type $$Props = SelectProps