DefinitelyTyped/types/path-exists/path-exists-tests.ts

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");