import fs from 'fs' type Data = Record[] export declare const data: Data export default { watch: ['./data/*'], async load(files: string[]): Promise { const foo = fs.readFileSync( files.find((f) => f.endsWith('foo.json'))!, 'utf-8' ) const bar = fs.readFileSync( files.find((f) => f.endsWith('bar.json'))!, 'utf-8' ) return [JSON.parse(foo), JSON.parse(bar)] } }