query-registry
Version:
Query the npm registry for packuments, manifests, packages and download counts
24 lines (21 loc) • 809 B
TypeScript
import * as z from "zod";
export declare const RegistrySigningKeys: z.ZodObject<{
keys: z.ZodArray<z.ZodObject<{
expires: z.ZodNullable<z.ZodString>;
keyid: z.ZodString;
keytype: z.ZodString;
scheme: z.ZodString;
key: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
/**
`RegistrySigningKeys` describes the signing keys used by the registry.
@see {@link https://docs.npmjs.com/about-registry-signatures}
*/
export type RegistrySigningKeys = z.infer<typeof RegistrySigningKeys>;
/**
`getRegistrySigningKeys` returns the public signing keys used by the registry.
@param registry - URL of the registry (default: npm registry)
@see {@link RegistrySigningKeys}
*/
export declare function getRegistrySigningKeys(registry?: string): Promise<RegistrySigningKeys>;