UNPKG

simple-redact

Version:
10 lines (9 loc) 374 B
import { ConfigRedact, RedactMethod } from './typings/ConfigRedact'; export default class Redacter { private redactMethod; constructor(redactMethod?: RedactMethod); private applyRedactMethod; private internalRedact; simpleRedact: (obj: Record<string, any>, config: string[]) => any; redact: (obj: Record<string, any>, config: ConfigRedact) => any; }