resolve-async Typed async resolve function // @flow import resolveAsync from 'resolve-async'; resolveAsync('./file.js', { basedir: __dirname }).then(filePath => { console.log(filePath); // "/path/to/file.js" });