From c48a32515268d8b6792edebb5aecc47239f5a36b Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 6 Aug 2026 03:44:12 -0700 Subject: [PATCH] Simplify API exports. --- src/index.ts | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9a3bfc3..244c464 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,16 +1,6 @@ //! SPDX-FileCopyrightText: 2025 Chris Duncan //! SPDX-License-Identifier: GPL-3.0-or-later -import { Account } from './lib/account' -import { Block } from './lib/block' -import { Blake2b } from './lib/crypto' -import * as Errors from './lib/errors' -import { Ledger } from './lib/ledger' -import { Rolodex } from './lib/rolodex' -import { Rpc } from './lib/rpc' -import * as Tools from './lib/tools' -import { Wallet } from './lib/wallet' - declare global { type Bytes = Uint8Array | Buffer type Hex = HexByte[] @@ -18,15 +8,13 @@ declare global { type HexChar = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' } -export { - Account, - Blake2b, - Block, - Errors, - Ledger, - Rolodex, - Rpc, - Tools, - Wallet -} +export { Account } from './lib/account' +export { Block } from './lib/block' +export { Blake2b } from './lib/crypto' +export { VaultError } from './lib/errors' +export { Ledger } from './lib/ledger' +export { Rolodex } from './lib/rolodex' +export { Rpc } from './lib/rpc' +export * as Tools from './lib/tools' +export { Wallet } from './lib/wallet' -- 2.52.0