Package: effect
Module: Inspectable
Converts an unknown value to a string for diagnostics.
When to use
Use to produce a diagnostic string from a value whose runtime type is unknown.
Details
Strings are returned unchanged. Objects are formatted as JSON using the
provided whitespace setting when possible, and values that cannot be
formatted are converted with String.
Signature
declare const toStringUnknown: (u: unknown, whitespace?: number | string | undefined) => string
Since v2.0.0