👁 查看:index.d.ts
路径:/home/boguraj1/public_html/jobsite/node_modules/path-exists/index.d.ts
大小:429 B · 修改:2022-11-21 20:10:40 · 权限:0644 · 可写
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;