Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyouxin committed Sep 20, 2023
1 parent 51ca854 commit cfcf792
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[default.extend-words]
thur = "thur"
numer = "numer"

# defined in database schema
lastest = "lastest"

[files]
extend-exclude = ["CHANGELOG.md", "**/migrations/*.ts"]



6 changes: 3 additions & 3 deletions packages/neuron-wallet/src/types/ckbComponents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ declare namespace CKBComponents {
lastCursor: string
objects: WithData extends true ? IndexerCell[] : IndexerCellWithoutData[]
}
type IndexerTransaction<Goruped extends boolean = false> = Goruped extends true
type IndexerTransaction<Grouped extends boolean = false> = Grouped extends true
? GroupedIndexerTransaction
: UngroupedIndexerTransaction
type UngroupedIndexerTransaction = {
Expand All @@ -203,9 +203,9 @@ declare namespace CKBComponents {
txIndex: number
cells: Array<[IOType, number]>
}
interface GetTransactionsResult<Goruped extends boolean = false> {
interface GetTransactionsResult<Grouped extends boolean = false> {
lastCursor: Hash256
objects: IndexerTransaction<Goruped>[]
objects: IndexerTransaction<Grouped>[]
}
interface CKBIndexerQueryOptions extends QueryOptions {
outputDataLenRange?: HexadecimalRange
Expand Down
6 changes: 3 additions & 3 deletions packages/neuron-wallet/src/types/rpc.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ declare namespace RPC {
output_data: string
tx_index: string
}
export type IndexerTransaction<Goruped extends boolean = false> = Goruped extends true
export type IndexerTransaction<Grouped extends boolean = false> = Grouped extends true
? GroupedIndexerTransaction
: UngroupedIndexerTransaction
export interface UngroupedIndexerTransaction {
Expand All @@ -361,9 +361,9 @@ declare namespace RPC {
tx_index: string
cells: Array<[IOType, string]>
}
export interface GetTransactionsResult<Goruped extends boolean = false> {
export interface GetTransactionsResult<Grouped extends boolean = false> {
last_cursor: Hash256
objects: IndexerTransaction<Goruped>[]
objects: IndexerTransaction<Grouped>[]
}
export interface GetLiveCellsResult {
last_cursor: Hash256
Expand Down

0 comments on commit cfcf792

Please sign in to comment.