diff --git a/_typos.toml b/_typos.toml index 09deee0241..369e09719d 100644 --- a/_typos.toml +++ b/_typos.toml @@ -1,11 +1,9 @@ [default.extend-words] thur = "thur" +numer = "numer" # defined in database schema lastest = "lastest" [files] extend-exclude = ["CHANGELOG.md", "**/migrations/*.ts"] - - - diff --git a/packages/neuron-wallet/src/types/ckbComponents.d.ts b/packages/neuron-wallet/src/types/ckbComponents.d.ts index 54ce71c2eb..0abb46de82 100644 --- a/packages/neuron-wallet/src/types/ckbComponents.d.ts +++ b/packages/neuron-wallet/src/types/ckbComponents.d.ts @@ -187,7 +187,7 @@ declare namespace CKBComponents { lastCursor: string objects: WithData extends true ? IndexerCell[] : IndexerCellWithoutData[] } - type IndexerTransaction = Goruped extends true + type IndexerTransaction = Grouped extends true ? GroupedIndexerTransaction : UngroupedIndexerTransaction type UngroupedIndexerTransaction = { @@ -203,9 +203,9 @@ declare namespace CKBComponents { txIndex: number cells: Array<[IOType, number]> } - interface GetTransactionsResult { + interface GetTransactionsResult { lastCursor: Hash256 - objects: IndexerTransaction[] + objects: IndexerTransaction[] } interface CKBIndexerQueryOptions extends QueryOptions { outputDataLenRange?: HexadecimalRange diff --git a/packages/neuron-wallet/src/types/rpc.d.ts b/packages/neuron-wallet/src/types/rpc.d.ts index 3bbeee57b2..10a7333fa2 100644 --- a/packages/neuron-wallet/src/types/rpc.d.ts +++ b/packages/neuron-wallet/src/types/rpc.d.ts @@ -345,7 +345,7 @@ declare namespace RPC { output_data: string tx_index: string } - export type IndexerTransaction = Goruped extends true + export type IndexerTransaction = Grouped extends true ? GroupedIndexerTransaction : UngroupedIndexerTransaction export interface UngroupedIndexerTransaction { @@ -361,9 +361,9 @@ declare namespace RPC { tx_index: string cells: Array<[IOType, string]> } - export interface GetTransactionsResult { + export interface GetTransactionsResult { last_cursor: Hash256 - objects: IndexerTransaction[] + objects: IndexerTransaction[] } export interface GetLiveCellsResult { last_cursor: Hash256