diff --git a/packages/jellyfish-api-core/src/category/account.ts b/packages/jellyfish-api-core/src/category/account.ts index 3ea3d49567..093757fcdb 100644 --- a/packages/jellyfish-api-core/src/category/account.ts +++ b/packages/jellyfish-api-core/src/category/account.ts @@ -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 /** @@ -223,7 +223,7 @@ export class Account { } export interface AccountPagination { - start?: string | number + start?: number including_start?: boolean limit?: number } diff --git a/website/docs/jellyfish/api/account.md b/website/docs/jellyfish/api/account.md index 98854cddaf..54ad9507b7 100644 --- a/website/docs/jellyfish/api/account.md +++ b/website/docs/jellyfish/api/account.md @@ -30,7 +30,7 @@ interface account { } interface AccountPagination { - start?: string | number + start?: number including_start?: boolean limit?: number } @@ -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 @@ -141,4 +141,4 @@ interface AccountHistoryOptions { txtype?: string limit?: number } -``` \ No newline at end of file +```