import _ from "lodash" ; import { LitvisNarrative } from "../types" ; export const extractCombinedAst = async ( narrative ) : Promise < void > => { narrative . combinedAst = { type : "parent" , children : _ . map ( narrative . documents , ( file ) => file . data . root ) , } ; } ;