Upgrade Ava to v4
This commit is contained in:
parent
9a40cc5274
commit
ce89f1b611
1153 changed files with 27264 additions and 95308 deletions
47
node_modules/path-exists/index.d.ts
generated
vendored
47
node_modules/path-exists/index.d.ts
generated
vendored
|
|
@ -1,28 +1,31 @@
|
|||
declare const pathExists: {
|
||||
/**
|
||||
Check if a path exists.
|
||||
/**
|
||||
Check if a path exists.
|
||||
|
||||
@returns Whether the path exists.
|
||||
@returns Whether the path exists.
|
||||
|
||||
@example
|
||||
```
|
||||
// foo.ts
|
||||
import pathExists = require('path-exists');
|
||||
@example
|
||||
```
|
||||
// foo.ts
|
||||
import {pathExists} from 'path-exists';
|
||||
|
||||
(async () => {
|
||||
console.log(await pathExists('foo.ts'));
|
||||
//=> true
|
||||
})();
|
||||
```
|
||||
*/
|
||||
(path: string): Promise<boolean>;
|
||||
console.log(await pathExists('foo.ts'));
|
||||
//=> true
|
||||
```
|
||||
*/
|
||||
export function pathExists(path: string): Promise<boolean>;
|
||||
|
||||
/**
|
||||
Synchronously check if a path exists.
|
||||
/**
|
||||
Synchronously check if a path exists.
|
||||
|
||||
@returns Whether the path exists.
|
||||
*/
|
||||
sync(path: string): boolean;
|
||||
};
|
||||
@returns Whether the path exists.
|
||||
|
||||
export = pathExists;
|
||||
@example
|
||||
```
|
||||
// foo.ts
|
||||
import {pathExistsSync} from 'path-exists';
|
||||
|
||||
console.log(pathExistsSync('foo.ts'));
|
||||
//=> true
|
||||
```
|
||||
*/
|
||||
export function pathExistsSync(path: string): boolean;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue