UNPKG

580 BTypeScriptView Raw
1/// <reference types="node" />
2export declare type Callback = Function;
3export declare type CallbackAction = (err: any | null) => void;
4export declare type CallbackError = (err: NodeJS.ErrnoException) => void;
5export interface RemoteUser {
6 real_groups: string[];
7 groups: string[];
8 name: string | void;
9 error?: string;
10}
11export declare type StringValue = string | void | null;
12export interface HttpError extends Error {
13 status: number;
14 statusCode: number;
15 expose: boolean;
16 headers?: {
17 [key: string]: string;
18 };
19 [key: string]: any;
20}