import { fetchFile } from 'src/nfs' ; import { Device , MediaSlot } from 'src/types' ; type AnlzLoaderOpts = { device : Device ; slot : MediaSlot . RB | MediaSlot . USB | MediaSlot . SD ; } ; export function anlzLoader ( opts ) { return ( path ) => fetchFile ( { ... opts , path } ) ; }