Skip to content

AnalyzeOverExposureParams.writeFile method

AnalyzeOverExposureParams › writeFile

Writes the tightened contents of a changed file back to disk. Required when shouldFix is true; ignored otherwise.

Signature:

writeFile(this: void, path: string, content: string): void

Parameters:

ParameterTypeDescription
thisvoid
pathstringAbsolute path of the file to write (original casing, as stored in the program).
contentstringThe full new file contents.

Returns: void