Skip to content

Commit 0509649

Browse files
authored
🔧 fix: Typescript with slices (#18)
1 parent aec4c62 commit 0509649

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

example/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const App = () => {
1313
<div className="toast toast-top toast-start animate-in">
1414
<div className="alert flex items-center justify-center">
1515
<h1 className="font-semibold">use-broadcast-ts</h1>
16-
<button className="btn btn-sm btn-neutral">v1.6.0</button>
16+
<button className="btn btn-sm btn-neutral">v1.7.1</button>
1717
</div>
1818
</div>
1919

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-broadcast-ts",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Use the Broadcast Channel API in React easily with hooks or Zustand, and Typescript!",
55
"type": "module",
66
"types": "./dist/index.d.ts",

src/shared.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type Shared = <
4343
>(
4444
f: StateCreator<T, Mps, Mcs>,
4545
options?: SharedOptions
46-
) => StateCreator<T, [], []>;
46+
) => StateCreator<T, Mps, Mcs>;
4747

4848
/**
4949
* Type implementation of the Shared function

0 commit comments

Comments
 (0)