Setu-TS
    Preparing search index...

    Interface IRedactionService

    A synchronous service that redacts individual values and structured records.

    interface IRedactionService {
        redactRecord(
            record: Readonly<Record<string, unknown>>,
        ): Readonly<Record<string, unknown>>;
        redactValue(path: string, value: unknown): unknown;
    }
    Index
    • Returns a redacted snapshot of a structured record: every plain object and array it walks is read once and copied, so the result holds exactly the values that were checked. The caller's record is never mutated.

      Parameters

      • record: Readonly<Record<string, unknown>>

      Returns Readonly<Record<string, unknown>>