The fixed details of the AcidCat specification as TypeScript data and pure functions, with no dependencies. Part of the TypeScript reference implementation.
The fixed details of the AcidCat specification, as TypeScript data and pure functions. npm package: @acid-cat/spec-ts. It has no dependencies.
This package is part of the TypeScript reference implementation. @acid-cat/core-effect and @acid-cat/core-ts use it, so that both cores agree on each detail. An implementation in another language does not use it.
pnpm add @acid-cat/spec-ts
Contents
Export
Use
ok, fail, callFailure, isCallFailure
Make and test outcomes. fail takes the whole failure: fail({ _tag: "Offline", since })
isJsonObject
Tell if a value is a JSON object: not null, and not an array
CALL_FAILURE_KINDS, CallFailureError
The kinds of call failure, and the JavaScript error for one
The fixed details of the AcidCat specification as TypeScript data and pure functions, with no dependencies. Part of the TypeScript reference implementation.