UNPKG

cspell-lib

Version:

A library of useful functions used across various cspell tools.

15 lines 624 B
import type { MappedText } from '@cspell/cspell-types'; import type { Range } from '@cspell/cspell-types/Parser'; /** * Extract a substring from a TextMap. * @param textMap - A text range with an optional map * @param extractRange - The range in the original document to extract * @returns The TextMap covering extractRange */ export declare function extractTextMapRangeOrigin(textMap: MappedText, extractRange: Range): MappedText; interface WithRange { readonly range: Range; } export declare function doesIntersect(textMap: WithRange, rangeOrigin: Range): boolean; export {}; //# sourceMappingURL=TextMap.d.ts.map