fcl-js icon indicating copy to clipboard operation
fcl-js copied to clipboard

[BUG] Transaction subcribe function has incorrect type

Open tombeckenham opened this issue 9 months ago • 1 comments

Current Behavior

The subscribe function returned by transaction has a type of (arg0: SubscriptionCallback) => () => void. However this function returns an unsubscribe function. It is also unclear if this function throws an error on failure.

Expected Behavior

The type should return an unsubscribe function. It should also indicate if it throws an error. The other once methods should also indicate if they throw errors

Steps To Reproduce

n/a

Environment

- OS:
- Node:
- npm:

What are you currently working on that this is blocking?

No response

tombeckenham avatar Feb 05 '25 00:02 tombeckenham