DefinitelyTyped/types/pacote/manifest.d.ts
Joel Spadin 25fe77861d Add types npm-registry-fetch, libnpmsearch, and pacote (#38376)
* Add types for npm-registry-fetch

* Add types for libnpmsearch

* Add types for pacote

* Use ReadonlyArray in libnpmsearch

* pacote: Reorganize imports/exports
2019-09-25 09:37:07 -07:00

14 lines
506 B
TypeScript

import { Options, Manifest } from './index';
/**
* Fetches the manifest for a package. Manifest objects are similar and based on
* the `package.json` for that package, but with pre-processed and limited
* fields.
*
* Note that depending on the spec type, some additional fields might be
* present. For example, packages from `registry.npmjs.org` have additional
* metadata appended by the registry.
*/
declare function manifest(spec: string, opts?: Options): Promise<Manifest>;
export = manifest;