-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package: add types definition #61
base: master
Are you sure you want to change the base?
Conversation
pubkeyScript: Uint8Array | ||
} | ||
|
||
interface Inputs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this interface correct?
value: "20000000" // satoshis as a decimal string, | ||
} | ||
|
||
type Outputs = OurOutput | TheirsOutput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
I'll review the types tomorrow or latest Thursday, but in the meantime: Does this constitute a minor or major version bump? Can this break downstream users of this package when upgrading? |
In worst case I assume it could break a CI, better make it a major bump IMO. |
If we cover all usages, it shouldn't break CI, only where there it is a bad usage. |
Discussed offline - this PR is paused for a few weeks pending other changes to the package that will impact the types. |
Add types defintion for the package