diff --git a/src/engine.ts b/src/engine.ts index 65d0e13..d02f4a6 100644 --- a/src/engine.ts +++ b/src/engine.ts @@ -132,7 +132,7 @@ export class JsonTemplateEngine { const translator = new JsonTemplateReverseTranslator(options); let newExpr = expr; if (Array.isArray(expr)) { - newExpr = JsonTemplateEngine.parseMappingPaths(expr as FlatMappingPaths[], options); + newExpr = JsonTemplateEngine.parseMappingPaths(expr, options); } return translator.translate(newExpr as Expression); }