DefinitelyTyped/types/pacote/prefetch.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

11 lines
373 B
TypeScript

import { Options } from './index';
/**
* @deprecated * **THIS API IS DEPRECATED. USE pacote.tarball() INSTEAD**
*
* Fetches package data identified by `spec`, usually for the purpose of warming
* up the local package cache (with `opts.cache`). It does not return anything.
*/
declare function prefetch(spec: string, opts?: Options): Promise<void>;
export = prefetch;