Skip to content

Commit

Permalink
fixed AccountPagination.start interface only allow number (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored May 16, 2021
1 parent 153d6e8 commit 904edd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/jellyfish-api-core/src/category/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import BigNumber from 'bignumber.js'
import { ApiClient } from '../.'

/**
* Single account ID (CScript or address) or reserved words,
* 'mine' to list history for all owned accounts or
* 'all' to list the whole DB
*/
* Single account ID (CScript or address) or reserved words,
* - 'mine' to list history for all owned accounts or
* - 'all' to list the whole DB
*/
type OwnerType = 'mine' | 'all' | string

/**
Expand Down Expand Up @@ -223,7 +223,7 @@ export class Account {
}

export interface AccountPagination {
start?: string | number
start?: number
including_start?: boolean
limit?: number
}
Expand Down
6 changes: 3 additions & 3 deletions website/docs/jellyfish/api/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface account {
}

interface AccountPagination {
start?: string | number
start?: number
including_start?: boolean
limit?: number
}
Expand Down Expand Up @@ -112,7 +112,7 @@ Returns information about account history

```ts title="client.account.listAccountHistory()"
interface account {
async listAccountHistory (
listAccountHistory (
owner: OwnerType = 'mine',
options: AccountHistoryOptions = {
limit: 100
Expand Down Expand Up @@ -141,4 +141,4 @@ interface AccountHistoryOptions {
txtype?: string
limit?: number
}
```
```

0 comments on commit 904edd3

Please sign in to comment.