@fajarnugraha37/error
Version:
Runtime-agnostic error handling library with structured errors, adapters, and validation support for Bun, Node.js, and browsers
7 lines (5 loc) • 402 B
text/typescript
type RedactionPredicate = (keyPath: string[]) => boolean;
declare function defaultRedactionPredicate(keyPath: string[]): boolean;
declare function redact(data: unknown, predicate?: RedactionPredicate): unknown;
declare function safeStringify(value: unknown, predicate?: RedactionPredicate, space?: number): string;
export { type RedactionPredicate, defaultRedactionPredicate, redact, safeStringify };