UNPKG

@microsoft/windows-admin-center-sdk

Version:

Microsoft - Windows Admin Center Shell

12 lines (11 loc) 589 B
import { ErrorResult } from '../models/error-result'; import { Updater } from '../models/updater-interface'; export declare class OnlyArrowFunctionsUpdater implements Updater { /** * Resolves only-arrow-functions linter error * @param {string} fileData String contents of file containing linter error * @param {ErrorResult} error Object representing linter error * @returns {Promise<string>} Updated file content after resolving linter error or the original contents if unable to resolve */ update(fileData: string, error: ErrorResult): Promise<string>; }