interface · Browser and Node
ExplainOptions
@toip-tools/mandatesView sourceimport { type ExplainOptions } from "@toip-tools/mandates";
Declaration
interface ExplainOptions {
/** A person's or an agent's name for a DID. Default: the DID. */
name?: (did: string) => string;
/** How to show a value of an attribute, e.g. units of USDC. Default: as is. */
units?: (u: Units, attr: string) => string;
/** A phrase for a dimension, e.g. spendPerTx → "per payment". Default: the dimension's name. */
label?: (dimension: string) => string | undefined;
/** What is being decided, e.g. "this payment". Default: "this action". */
noun?: string;
}
Properties
nameoptional((did: string) => string) | undefinedA person's or an agent's name for a DID. Default: the DID.
unitsoptional((u: Units, attr: string) => string) | undefinedHow to show a value of an attribute, e.g. units of USDC. Default: as is.
labeloptional((dimension: string) => string | undefined) | undefinedA phrase for a dimension, e.g. spendPerTx → "per payment". Default: the dimension's name.
nounoptionalstring | undefinedWhat is being decided, e.g. "this payment". Default: "this action".