On this page
Safe SDK
calculateSafe returns a Promise of native Effect Result<Report, TaxKitError>. Narrow _tag: "Success" to read success, or _tag: "Failure" to read failure. All expected failures have Schema-tagged identities.
Use Schema.Result(definition.outputSchema, TaxKitError) and Schema.toCodecJson to persist outcomes. A closed client returns TaxKitClientDisposedError directly in failure. calculate rejects with the same expected error vocabulary; TypeScript cannot type Promise rejection channels.
Plain SDK owns client lifetime examples.