HomePhabricator

[chronik-client] Improve type definition

Description

[chronik-client] Improve type definition

Summary:
Improve type definition for keys that may or may not be defined

Not expected to change behavior. However, helpful for other repos that use typescript and are using chronik-client. e.g. right now, such a repo will expect TxInput_InNode to have a block key, that may have the value of undefined. Reality is the block key may or may not exist.

discovered while working on D15625

Test Plan: CI

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D15626

Details

Provenance
bytesofmanAuthored on Mar 4 2024, 21:23
bytesofmanPushed on Mar 5 2024, 20:33
Reviewer
Restricted Project
Differential Revision
D15626: [chronik-client] Improve type definition
Parents
rABC7d0cdcb2aecc: [guix] delete rustup-init script after use
Branches
Unknown
Tags
Unknown