mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for npm-registry-fetch * Add types for libnpmsearch * Add types for pacote * Use ReadonlyArray in libnpmsearch * pacote: Reorganize imports/exports
14 lines
506 B
TypeScript
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;
|