UNPKG

astx

Version:

super powerful structural search and replace for JavaScript and TypeScript to automate your refactoring

10 lines (9 loc) 434 B
import { Match } from '../find'; import { Location, Node } from '../types'; import { IpcMatch, IpcNode } from '../node/ipc'; interface Backend { location: (node: Node | IpcNode) => Location; } export default function formatMatches(backend: Backend, source: string, matches: readonly Match[] | readonly IpcMatch[]): string; export declare function formatIpcMatches(source: string, matches: readonly IpcMatch[]): string; export {};