$ npm install @pnpm/fetcher-base
Types for pnpm-compatible fetchers
<pnpm|npm|yarn> add @pnpm/fetcher-base
Here's a template for a fetcher using types from @pnpm/fetcher-base
:
import {Resolution} from '@pnpm/resolver-base'
import {
FetchOptions,
FetchResult,
} from '@pnpm/fetcher-base'
export async function (
resolution: Resolution,
targetFolder: string,
opts: FetchOptions,
): Promise<FetchResult>
// ...
return {
filesIndex,
tempLocation,
}
}
MIT © Zoltan Kochan
© 2010 - cnpmjs.org x YWFE | Home | YWFE