@@ -26,7 +26,7 @@ import NodeMutation, {
2626 RemoveOptions ,
2727 Adapter as MutationAdapter ,
2828} from "@synvert-hq/node-mutation" ;
29- import { Parser } from "./types/options" ;
29+ import { Parser , NewLineInsertOptions } from "./types/options" ;
3030import { TestResultExt } from "./types/result" ;
3131import * as HtmlEngine from "./engines/html" ;
3232import * as RailsErbEngine from "./engines/rails_erb" ;
@@ -938,7 +938,7 @@ class Instance<T> {
938938 * @param {boolean } [options.andSpace] - insert additional space
939939 * @param {boolean } [options.fixIndent] - fix indent of the code
940940 */
941- insertAfter ( code : string , options : InsertOptions = { } ) : void {
941+ insertAfter ( code : string , options : NewLineInsertOptions = { } ) : void {
942942 const column = " " . repeat (
943943 this . currentMutation . adapter . getStartLoc ( this . currentNode , options . to )
944944 . column ,
@@ -974,7 +974,7 @@ class Instance<T> {
974974 * @param {boolean } [options.andSpace] - insert additional space
975975 * @param {boolean } [options.fixIndent] - fix indent of the code
976976 */
977- insertBefore ( code : string , options : InsertOptions = { } ) : void {
977+ insertBefore ( code : string , options : NewLineInsertOptions = { } ) : void {
978978 const column = " " . repeat (
979979 this . currentMutation . adapter . getStartLoc ( this . currentNode , options . to )
980980 . column ,
0 commit comments