TypeScript

@beblurt/dblurt ships TypeScript declarations. The declaration entrypoints are defined by package.json and generated during the normal build.

Do not treat the repository's current compiler devDependency, or a one-off consumer smoke compiler version, as the SDK's public TypeScript compatibility contract. The public contract is that declarations are shipped and validated by the project tests; a precise consumer compiler minimum should only be documented if it is declared and continuously tested.

Package metadata owns the declaration entrypoints:

{
"types": "./lib/index",
"typings": "./lib/index"
}

For a complete TypeScript consumer example, see ../examples/typescript/read-account.ts.

import { Client, BlockchainMode, ExtendedAccount } from '@beblurt/dblurt';

const rpcList = [
'https://rpc.blurt.blog',
'https://blurt-rpc.saboin.com',
'https://rpc.beblurt.com',
'https://blurtrpc.dagobert.uk',
'https://rpc.drakernoise.com'
];

const client = new Client(rpcList);

async function loadAccount(name: string): Promise<ExtendedAccount | undefined> {
const accounts = await client.condenser.getAccounts([name]);
return accounts[0];
}

async function latestIrreversibleBlock(): Promise<number> {
return client.blockchain.getCurrentBlockNum(BlockchainMode.Irreversible);
}

The package contract tests verify that the public declaration bundle is present and that test framework ambient types do not leak into the published declarations.

npm run docs:check also compiles the TypeScript example without emitting output. Treat that command as the current validation path instead of copying a compiler version into this guide.