mirror of https://github.com/sveltejs/svelte
parent
35b500c399
commit
776ac3c176
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: add back `derived` type overload
|
@ -0,0 +1,13 @@
|
||||
import { derived, writable } from 'svelte/store';
|
||||
|
||||
const a = writable(false);
|
||||
derived(a, (aVal) => {
|
||||
// @ts-expect-error
|
||||
aVal === '';
|
||||
return aVal === true;
|
||||
});
|
||||
derived([a], ([aVal]) => {
|
||||
// @ts-expect-error
|
||||
aVal === '';
|
||||
return aVal === true;
|
||||
});
|
Loading…
Reference in new issue