Files
DefinitelyTyped/types/read-pkg-up/read-pkg-up-tests.ts
2017-09-20 11:20:23 -07:00

7 lines
276 B
TypeScript

import ReadPkgUp = require('read-pkg-up');
ReadPkgUp().then(pkg => typeof pkg === 'object');
ReadPkgUp({cwd: '.', normalize: false}).then(pkg => typeof pkg === 'object');
typeof ReadPkgUp.sync() === 'object';
typeof ReadPkgUp.sync({cwd: '.', normalize: false}) === 'object';