approvals
Version:
Approval Tests Library - Capturing Human Intelligence
21 lines (20 loc) • 781 B
TypeScript
export type Scrubber = (t: string) => string;
type ReplacementFunction = (index: number) => string;
export declare class Scrubbers {
static createReqexScrubber(regex: RegExp, replacement: string | ReplacementFunction): Scrubber;
static createGuidScrubber(): Scrubber;
/**
* This method exists as a convenient way to get an example scrubber for you to use.
* To use this template, simply inline the method in your IDE.
*/
static templates: {
new (): {};
regexScrubberWithLambda(): Scrubber;
regexScrubber(): Scrubber;
dateScrubber(): Scrubber;
};
static noScrubber(data: any): any;
static guidScrubber(data: string): string;
static multiScrubber(scrubbers: Scrubber[]): (data: any) => any;
}
export {};