mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-29 21:17:34 +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");
|