mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
7 lines
187 B
TypeScript
7 lines
187 B
TypeScript
import pathExists = require("path-exists");
|
|
|
|
pathExists('foo.js').then(exists => {
|
|
const bool: boolean = exists;
|
|
});
|
|
const bool: boolean = pathExists.sync("test/__path-exists.d.ts");
|