export async function _accounts (accounts: AccountList, vault: Vault, from: number, to: number): Promise<AccountList>
export async function _accounts (accounts: AccountList, vault: Vault, from: unknown, to: unknown): Promise<AccountList> {
if (typeof from !== 'number' || typeof to !== 'number') {
- throw new TypeError('Invalid account range', { cause: `${to}-${from}` })
+ throw new TypeError('Invalid account range', { cause: `${from}-${to}` })
}
if (from > to) [from as number, to as number] = [to, from]
const output = new AccountList()