import findParsableFile from "./findParsableFile" ; param { Book } book param { string } type return { Promise < File | Undefined > } function lookupStructureFile ( book , type ) { const config = book . getConfig ( ) ; const fileToSearch = config . getValue ( [ "structure" , type ] ) ; return findParsableFile ( book , fileToSearch ) ; } export default lookupStructureFile ;