This PR improves TypeScript generation in a few ways:
Indexer types are now generated. These types are treated as completely separate from algod types and they live in a different file.
A static method fromParsedJSON has been added to each generated model class. This method allows JSON responses to be turned into our generated class types.
Small bugfix: arrays of integer types used to be incorrectly built as number | bigint[], but they are now correctly built as (number | bigint)[].
Quality of life: the JS SDK formatter is now ran automatically after code generation.
This PR improves TypeScript generation in a few ways:
fromParsedJSON
has been added to each generated model class. This method allows JSON responses to be turned into our generated class types.number | bigint[]
, but they are now correctly built as(number | bigint)[]
.The changes here were used to generate the code in https://github.com/algorand/js-algorand-sdk/pull/663 and https://github.com/algorand/js-algorand-sdk/pull/662