Version: 0.0.10.1.0-dev.201802130.1.00.2.0-dev.201802180.2.0-dev.201802200.2.0-dev.201802210.2.0-dev.201802220.2.0-dev.201802230.2.00.3.00.4.0-dev.201802270.4.0-dev.201802280.4.0-dev.201803010.4.0-dev.201803020.4.0-dev.201803050.4.0-dev.201803060.4.0-dev.201803070.4.0-dev.201803080.4.00.5.0-dev.201803110.5.0-dev.201803120.5.0-dev.201803130.5.00.6.0-dev.201803160.6.0-dev.201803180.6.0-dev.201803200.6.0-dev.201803210.6.0-dev.201803220.6.00.7.0-dev.201803250.7.0-dev.201803260.7.0-dev.201803270.7.0-dev.201803280.7.0-dev.201803310.7.0-dev.201804020.7.0-dev.201804040.7.0-dev.201804050.7.00.8.0-dev.201804100.8.0-dev.201804110.8.0-dev.201804150.8.0-dev.201804160.8.0-dev.201804190.8.0-dev.201804200.8.0-dev.201804210.8.00.9.0-dev.201804240.9.0-dev.201804250.9.0-dev.201804260.9.0-dev.201804280.9.0-dev.201804300.9.0-dev.201805010.9.0-dev.201805020.9.0-dev.201805050.9.00.10.0-dev.201805090.10.0-dev.201805100.10.0-dev.201805120.10.0-dev.201805150.10.0-dev.201805170.10.00.11.0-dev.201806040.11.0-dev.201806070.11.0-dev.201806090.11.0-dev.201806100.11.0-dev.201806110.11.00.12.0-dev.201806240.12.0-dev.201806280.12.0-dev.201806290.12.0-dev.201807010.12.0-dev.201807100.12.0-dev.201807110.12.00.13.0-dev.201807180.13.0-dev.201807190.13.0-dev.201807220.13.0-dev.201807260.13.0-dev.201808020.13.0-dev.201808030.13.0-dev.201808040.13.0-dev.201808070.13.00.14.0-dev.201809020.14.0-dev.201809050.14.0-dev.201809060.14.00.15.0-dev.201809080.15.0-dev.201809130.15.0-dev.201809180.15.0-dev.201810060.15.0-dev.201810160.15.0-dev.201810180.15.0-dev.201810200.15.00.16.0-dev.201810260.16.0-dev.201810310.16.0-dev.201811040.16.0-dev.201811070.16.0-dev.201811140.16.0-dev.201811150.16.00.17.0-dev.201811300.17.0-dev.201812010.17.0-dev.201812050.17.0-dev.201812080.17.0-dev.201812150.17.0-dev.201812170.17.0-dev.201812180.17.0-dev.201812190.17.0-dev.201812200.17.0-dev.201812210.17.00.18.0-dev.201812270.18.0-dev.201812310.18.0-dev.201901030.18.0-dev.201901060.18.00.19.0-dev.201901110.19.0-dev.201901190.19.0-dev.201901200.19.00.20.0-dev.201901260.20.0-dev.201901290.20.0-dev.201901300.20.0-dev.201902010.20.0-dev.201902030.20.0-dev.201902070.20.0-dev.201902090.20.00.21.0-dev.201903180.21.0-dev.201903220.21.0-dev.201903280.21.0-dev.201903290.21.0-dev.201904030.21.0-dev.201904060.21.0-dev.201904120.21.0-dev.201904240.21.0-dev.201905050.21.0-dev.201905070.21.0-dev.201905120.21.0-dev.201905180.21.0-dev.201905290.21.0-dev.201906030.21.0-dev.201906040.21.0-dev.201906050.21.00.21.10.22.0-dev.201906190.22.0-dev.201906200.22.0-dev.201907020.22.0-dev.201908060.22.0-dev.201908160.22.0-dev.201910090.22.0-dev.201910100.22.0-dev.201911110.22.0-dev.202001010.22.0-dev.202002040.22.0-dev.202012070.22.00.23.0-dev.202012180.23.0-dev.202101070.23.0-dev.202101080.23.0-dev.202101100.23.0-dev.202101110.23.0-dev.202101120.23.0-dev.202101140.23.0-dev.202101160.23.00.24.0-dev.202101200.24.0-dev.202101210.24.0-dev.202101220.24.0-dev.202101310.24.0-dev.202102080.24.0-dev.202102140.24.0-dev.202102160.24.0-dev.202102180.24.0-dev.202102190.24.00.25.0-dev.20210309
import * as ts from 'typescript';
import { Fix } from '@fimbul/ymir';
export interface FixResult {
result: string;
fixed: number;
range: ts.TextChangeRange;
}
/**
* Tries to apply all fixes. The replacements of all fixes are sorted by index ascending.
* They are then applied in order. If a replacement overlaps (or touches) the range of the previous replacement,
* the process rolls back to the state before the first replacement of the offending fix was applied. The replacements
* of this fix are not applied again.
* At least one fix will be applied.
*/
export declare function applyFixes(source: string, fixes: Fix[]): FixResult;