textlint-rule-helper
Version:
A helper library for textlint rule.
10 lines (9 loc) • 341 B
TypeScript
import type { TextlintRuleErrorDetails } from "@textlint/types";
import { AnyTxtNode } from "@textlint/ast-node-types";
export declare class SourceLocation {
private text;
private _source;
constructor(text: string);
private get source();
toAbsoluteLocation(node: AnyTxtNode, padding: TextlintRuleErrorDetails): number;
}