mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-06 07:01:45 -05:00
Adds setup.browser.ts with fake-indexeddb, a fetch polyfill that points sql.js WASM and loot-core's data-file-index fetches at on-disk files, and wires the browser Vite config to use jsdom. The shared integration spec now gates the full CRUD roundtrip behind __API_FULL_SUITE__ (set only in Node) because absurd-sql's worker + SharedArrayBuffer requirement is not met under jsdom; the browser smoke test verifies that init returns a usable handle. Full-flow browser coverage moves to the playground app in the next phase. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
npm install @actual-app/api
View docs here: https://actualbudget.org/docs/api/
TypeScript
@actual-app/api publishes TypeScript declarations. Consumers using TypeScript must set moduleResolution to "bundler", "nodenext", or "node16" in their tsconfig.json. Legacy "node" / "node10" / "classic" resolution is not supported in strict mode — the published declarations rely on package.json exports conditions that older resolvers don't honor.