Fix return type def

This commit is contained in:
Convly 2022-08-03 09:51:45 +02:00
parent bf9c618a83
commit a7eb9c81e6

View File

@ -13,7 +13,7 @@ const DEFAULT_TS_CONFIG_FILENAME = 'tsconfig.json';
* @param {string} [options.filename]
* @param {boolean} [options.ancestorsLookup]
*
* @return {string}
* @return {string | undefined}
*/
module.exports = (dir, { filename = DEFAULT_TS_CONFIG_FILENAME, ancestorsLookup = false } = {}) => {
const dirAbsolutePath = path.resolve(dir);