import { readFile } from 'fs' ; import { promisify } from 'util' ; import { schemaFromTypeDefs } from './schema-from-type-defs' ; export param { ... string [ ] } paths returns { Promise < object > } export async function schemaFromTypePaths ( ... paths ) { const files = await Promise . all ( paths . map ( path => promisify ( readFile ) ( path , 'utf8' ) ) ) ; return schemaFromTypeDefs ( ... files ) ; }