mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
8 lines
187 B
TypeScript
8 lines
187 B
TypeScript
|
|
import pathExists = require("path-exists");
|
|
|
|
pathExists("test/path-exists.d.ts", (error, exists) => {
|
|
console.log(exists);
|
|
});
|
|
console.log(pathExists.sync("test/__path-exists.d.ts"));
|