UNPKG

diffjam

Version:
11 lines (10 loc) 383 B
import { Match } from "./match"; import { Needles } from "./Policy"; export declare class FileMatcher { path: string; contents: string; private newLineIndexes; constructor(path: string, contents: string); findMatches(needles: Needles, onMatch: (match: Match) => void): void; } export declare function findMatches(fileContents: string, needles: Needles): Match[];