Home > harper.js > Linter > applySuggestion

Linter.applySuggestion() method

Apply a suggestion from a lint to text, returning the changed text.

Signature:

applySuggestion(text: string, lint: Lint, suggestion: Suggestion): Promise<string>;

Parameters

Parameter

Type

Description

text

string

lint

Lint

suggestion

Suggestion

Returns:

Promise<string>