UNPKG

textlint

Version:

The pluggable linting tool for natural language.

29 lines • 1.19 kB
import { AbstractBacker } from "./execute-file-backers/abstruct-backer.js"; import { TextlintResult } from "@textlint/kernel"; export declare class ExecuteFileBackerManager { private _backers; /** * create MessageProcessManager with backers * @param {AbstractBacker[]} backers */ constructor(backers?: AbstractBacker[]); /** * @param {AbstractBacker} backer */ add(backer: AbstractBacker): void; /** * @param {AbstractBacker} backer */ remove(backer: AbstractBacker): void; /** * process `messages` with registered processes * * A file is in process at a time, in the order of `files`. * While the files in process wait for something outside JavaScript, another file starts, * and at most MAX_CONCURRENT_FILES files are in process at the same time. * While the profile is on, one file is in process at a time. * The results have the executed files in the order of `files`, and then the un-executed files. */ process<R extends TextlintResult>(files: string[], executeFile: (filePath: string) => Promise<R>): Promise<R[]>; } //# sourceMappingURL=execute-file-backer-manager.d.ts.map