Urara-Blog/node_modules/.pnpm-store/v3/files/df/8644b4bd3d33acc31fcc8affc6c6b338be7c6c7e9fa6cc375979f6d43392812fac839c6a78c77f07172cf2a5cbebb6152435d5c86f17cbde617ddeb9713cc2
2022-08-14 01:14:53 +08:00

28 lines
429 B
Text

declare const pathExists: {
/**
Check if a path exists.
@returns Whether the path exists.
@example
```
// foo.ts
import pathExists = require('path-exists');
(async () => {
console.log(await pathExists('foo.ts'));
//=> true
})();
```
*/
(path: string): Promise<boolean>;
/**
Synchronously check if a path exists.
@returns Whether the path exists.
*/
sync(path: string): boolean;
};
export = pathExists;