@verdaccio/types
Version:
verdaccio types definitions
21 lines (20 loc) • 580 B
TypeScript
/// <reference types="node" />
export declare type Callback = Function;
export declare type CallbackAction = (err: any | null) => void;
export declare type CallbackError = (err: NodeJS.ErrnoException) => void;
export interface RemoteUser {
real_groups: string[];
groups: string[];
name: string | void;
error?: string;
}
export declare type StringValue = string | void | null;
export interface HttpError extends Error {
status: number;
statusCode: number;
expose: boolean;
headers?: {
[key: string]: string;
};
[key: string]: any;
}