mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for pkg-conf@2.1 * Refine for tests * Remove fixture * Update pkg-conf-tests.ts * Fix test * Update pkg-conf-tests.ts
7 lines
238 B
TypeScript
7 lines
238 B
TypeScript
import pkgConf = require('pkg-conf');
|
|
|
|
pkgConf('name'); // $ExpectType Promise<JsonMap>
|
|
const config = pkgConf.sync('bugs'); // $ExpectType JsonMap
|
|
pkgConf.filepath(config); // $ExpectType string | null
|
|
config.url; // $ExpectType AnyJson
|