Skip to content

Commit

Permalink
Add back the return statement to withOptions (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
atk authored Apr 11, 2024
2 parents 2dba53a + 99c6e09 commit 1c10b31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-llamas-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solid-primitives/storage": minor
---

Add back the return statement to withOptions
2 changes: 1 addition & 1 deletion packages/storage/src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const addWithOptionsMethod = <
if (typeof storage[key] === "function") {
(wrapped as any)[key] = (...args: Parameters<(typeof storage)[typeof key]>) => {
args[storage[key].length - 1] = options;
storage[key](...args);
return storage[key](...args);
};
}
return wrapped;
Expand Down

0 comments on commit 1c10b31

Please sign in to comment.