Skip to content

Commit

Permalink
Fix async derived signature. Fixes #25
Browse files Browse the repository at this point in the history
  • Loading branch information
PixievoltNo1 committed Apr 4, 2024
1 parent 0e5fc42 commit 7f76ef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased

- Fixed incorrect TypeScript definition for async `derived` ([#25](https://github.com/PixievoltNo1/svelte-writable-derived/issues/25))
- Now supports Svelte 5 (-next.94 and later)

In Svelte 5, this package does not use runes and continues to use the original writable store interface, which is not deprecated. I may release a separate package that uses runes.
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function writableDerived<S extends Stores, T>(

export default function writableDerived<S extends Stores, T>(
origins: S,
derive: (values: StoresValues<S>, set: (value: T) => void, update: Updater<T>) => void,
derive: (values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => void,
reflect: (reflecting: T, old: StoresValues<S>) => SetValues<S>,
initial?: T
): Writable<T>;
Expand Down

0 comments on commit 7f76ef7

Please sign in to comment.