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
11 lines
373 B
TypeScript
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;
|