mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
9 lines
229 B
TypeScript
9 lines
229 B
TypeScript
/// <reference path="path-exists.d.ts" />
|
|
|
|
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"));
|