UNPKG

redos-detector

Version:

A CLI and library which tests helps score how vulnerable a regex pattern is to ReDoS attacks. Supported in the browser, Node and Deno.

6 lines (5 loc) 189 B
export declare class ResultCache<TValue, TKey = unknown> { private _cache; addResult(a: TKey, b: TKey, result: TValue): void; getResult(a: TKey, b: TKey): TValue | undefined; }