anza-xyz / anza-xyz/kit

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

Offen
#1,016 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
695
Forks
210
Ø Merge
21 Std. 33 Min.
Gemergte PRs (30 T.)
90

Beschreibung

As an example `signTransactionMessageWithSigners` returns the type `Promise`

`SendableTransaction` is exported: `export type SendableTransaction = FullySignedTransaction & TransactionWithinSizeLimit`

[In our docs](https://www.solanakit.com/api/functions/signTransactionMessageWithSigners#returns) this shows as:

```ts
Promise & 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.