UNPKG

@nodesecure/contact

Version:

Utilities to extract/fetch data on NPM contacts (author, maintainers ..)

15 lines 557 B
import type { Contact } from "@nodesecure/npm-types"; import type { RequireAtLeastOne } from "type-fest"; export type EnforcedContact = RequireAtLeastOne<Contact, "name" | "email">; export type IlluminatedContact = EnforcedContact & { dependencies: string[]; }; export declare class UnlitContact { private illuminated; private extendedName; dependencies: Set<string>; constructor(contact: EnforcedContact); compareTo(contact: Contact): boolean; illuminate(): IlluminatedContact; } //# sourceMappingURL=UnlitContact.class.d.ts.map