config
Reads or updates the configuration for the current Arith constructor.
API Reference
Signature
Parameters
Returns
Returns the full current configuration after applying any supplied changes.
Throws
- Throws if
objectis not an object. - Throws if a config value is outside its allowed range.
- Throws if
CRYPTO: trueis requested and crypto is unavailable.
Configuration Fields
Agent Contract
Agent Notes
- Save the previous config before mutating shared
Arithin examples or tests. - Prefer
Arith.clone()for reusable code to avoid global config side effects. - Import with
import { Arith } from "@teakit/arith"; default imports are unsupported. - Static helpers are called as
Arith.method(...)and do not require an instance receiver. - Do not generate
BigNumber,Decimal,isBigNumber, orisDecimalcompatibility APIs. - Use string inputs for exact decimal values when a static helper accepts numeric values.