@discoveryjs/discovery
Version:
Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards
7 lines (6 loc) • 409 B
TypeScript
export type PatternMatch = {
offset: number;
length: number;
};
export declare function match(text: string, pattern: RegExp | string | null, ignoreCase?: boolean): boolean;
export declare function matchAll(text: string, pattern: RegExp | string | null, onText: (substring: string, last: boolean) => void, onMatch: (substring: string, stopSymbol: symbol) => void | symbol, ignoreCase?: boolean): void;