UNPKG

npm-registry-sdk

Version:

A fully type-safe client library for the npm registry API.

8 lines (7 loc) 292 B
export type RequestInitOptions = Pick<RequestInit, 'headers' | 'signal'>; interface RequestOptions extends RequestInitOptions { endpoint: string; params?: Record<string, unknown>; } export declare function request<T>(registry: string, options: RequestOptions): Promise<T>; export {};