source: imaps-frontend/node_modules/path-exists/index.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 429 bytes
RevLine 
[d565449]1declare const pathExists: {
2 /**
3 Check if a path exists.
4
5 @returns Whether the path exists.
6
7 @example
8 ```
9 // foo.ts
10 import pathExists = require('path-exists');
11
12 (async () => {
13 console.log(await pathExists('foo.ts'));
14 //=> true
15 })();
16 ```
17 */
18 (path: string): Promise<boolean>;
19
20 /**
21 Synchronously check if a path exists.
22
23 @returns Whether the path exists.
24 */
25 sync(path: string): boolean;
26};
27
28export = pathExists;
Note: See TracBrowser for help on using the repository browser.