Skip to content

Docs: Transaction type is 'unrolled', making types look much more complex #1016

@mcintyre94

Description

@mcintyre94

As an example signTransactionMessageWithSigners returns the type Promise<SendableTransaction & Transaction & TransactionWithLifetime>

SendableTransaction is exported: export type SendableTransaction = FullySignedTransaction & TransactionWithinSizeLimit

In our docs this shows as:

Promise<FullySignedTransaction & TransactionWithinSizeLimit & Readonly<{ messageBytes: TransactionMessageBytes; signatures: SignaturesMap; }> & TransactionWithLifetime>

This looks much more complex, because the Transaction type has been unnecessarily unrolled to the fields that it contains. Transaction is a core type and makes sense to keep as-is in our documentation.

I'm not sure if this is a Fumadocs bug or something we can configure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions