connectkit
connectkit copied to clipboard
[BUG] useSIWE() hook return union-typed as any
The useSIWE()
hook return is union-typed as any:
https://github.com/family/connectkit/blob/825f95e8f6bd9fae16803a63efaa14b87137a793/packages/connectkit/src/siwe/useSIWE.ts#L28
That kills all type inference when using it
Running into the same issue, tying is completely bricked for useSIWE() hook.
https://github.com/family/connectkit/blame/main/packages/connectkit/src/siwe/useSIWE.ts#L28C7-L28C7
Ping @lochie
Created PR fix: https://github.com/family/connectkit/pull/322
@lochie @volkyeth
@ian-os changing the return types breaks a few other places. I have a fix for those as well in #317