Skip to content

Commit 841249b

Browse files
authored
Merge pull request #22 from nickytonline/typescript-types-update
Made function signature strictly typed.
2 parents f2c6a47 + f87c47b commit 841249b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
export default function linkState(component: any, key: string, eventPath?: string): (e) => void;
1+
export default function linkState(
2+
component: any,
3+
key: string,
4+
eventPath?: string,
5+
): <TEvent extends Event = Event>(e: TEvent) => void;

0 commit comments

Comments
 (0)