Closed dotNomad closed 11 months ago
Noticed a typing inconsistency while working on testing a YNAB script:
When retrieving transactions from the endpoint GET /budgets/{budget_id}/transactions the transactions received can have:
GET /budgets/{budget_id}/transactions
flag_color: null, debt_transaction_type: null,
These show as invalid with the TypeScript types given.
TransactionDetailFlagColorEnum has Null: "null" which is not equivalent to null. The same goes for TransactionDetailDebtTransactionTypeEnum.
TransactionDetailFlagColorEnum
Null: "null"
null
TransactionDetailDebtTransactionTypeEnum
Thanks! This is fixed in https://github.com/ynab/ynab-sdk-js/pull/163.
Awesome! Thank you for the fix. 🎉
Noticed a typing inconsistency while working on testing a YNAB script:
When retrieving transactions from the endpoint
GET /budgets/{budget_id}/transactions
the transactions received can have:These show as invalid with the TypeScript types given.
TransactionDetailFlagColorEnum
hasNull: "null"
which is not equivalent tonull
. The same goes forTransactionDetailDebtTransactionTypeEnum
.