Skip to content

Commit

Permalink
fix types in demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed May 24, 2024
1 parent 8ee7cd1 commit 2c15a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/src/lib/Store.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
});
const clickHandler = (value = 0) => {
const clickHandler = (value: null | number = 0) => {
store.update(counter => value === null ? 0 : counter + value);
}
</script>
Expand Down

0 comments on commit 2c15a21

Please sign in to comment.