import { VFile } from "vfile" ; import { LitvisNarrative } from "../types" ; export const listNarrativeFiles = ( narrative ) : VFile [ ] => { const result = [ ... narrative . documents ] ; if ( narrative . composedNarrativeSchema ) { result . push ( ... narrative . composedNarrativeSchema . components ) ; } return result ; } ;