mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-06 04:34:24 +08:00
7 lines
276 B
TypeScript
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';
|