2.0.4 • Published 6 months ago
@types/npm-list-author-packages v2.0.4
Installation
npm install --save @types/npm-list-author-packages
Summary
This package contains type definitions for npm-list-author-packages (https://github.com/kgryte/npm-list-author-packages#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-list-author-packages.
index.d.ts
// Type definitions for npm-list-author-packages 2.0
// Project: https://github.com/kgryte/npm-list-author-packages#readme
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace list {
interface Options {
/** registry port. Default: 443 (HTTPS) or 80 (HTTP). */
port?: 443 | 80 | undefined;
/** registry protocol. Default: 'https'. */
protocol?: 'http' | 'https' | undefined;
/** registry. Default: 'registry.npmjs.org'. */
registry?: string | undefined;
/** author username (required). */
username: string;
}
type Callback = (error: Error | null, data: string[]) => void;
function factory(opts: Options, callback: Callback): () => void;
}
declare function list(opts: list.Options, callback: list.Callback): void;
export = list;
Additional Details
- Last updated: Thu, 08 Jul 2021 18:51:38 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Florian Keller.