Home > harper.js > Linter > applySuggestion
Apply a suggestion from a lint to text, returning the changed text.
Signature:
applySuggestion(text: string, lint: Lint, suggestion: Suggestion): Promise<string>;
|
Parameter |
Type |
Description |
|---|---|---|
|
text |
string | |
|
lint | ||
|
suggestion |
Returns:
Promise<string>