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
16 lines
709 B
TypeScript
16 lines
709 B
TypeScript
import { Options, Packument } from './index';
|
|
|
|
/**
|
|
* Fetches the packument for a package. Packument objects are general metadata
|
|
* about a project corresponding to registry metadata, and include version and
|
|
* `dist-tag` information about a package's available versions, rather than a
|
|
* specific version. It may include additional metadata not usually available
|
|
* through the individual package metadata objects.
|
|
*
|
|
* 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 packument(spec: string, opts?: Options): Promise<Packument>;
|
|
export = packument;
|