Home > @skunkteam/types > printValue
Print an unknown value with a given character budget (default: 50).
Signature:
declare function printValue(input: unknown, budget?: number, visited?: Set<unknown>): string;
Parameter | Type | Description |
---|---|---|
input | unknown | |
budget | number | (Optional) |
visited | Set<unknown> | (Optional) |
Returns:
string
Note that the budget is a hint and is not guaranteed to be met. It protects against circular references.