debugger-logger
Version:
Basic logging of all console actions and module calls and http(s) requests.
41 lines (34 loc) • 980 B
TypeScript
// HttpRequestInterceptor.d.ts
// noinspection JSUnusedGlobalSymbols
declare module 'debugger-logger/src/Util'
{
type UrlOptions = {
protocol: string | null;
hostname: string | null;
hash: string | null;
search: string | null;
pathname: string | null;
path: string;
href: string;
port?: number;
auth?: string;
};
type ClientRequestObject = {
options: UrlOptions|{},
callback: function,
};
/**
* Utility class for re-used functionality.
*/
class Util
{
normalizeClientRequestArgs(_input: string|URL, _options: Object, _callback: function): ClientRequestObject
{
function urlToOptions(_url: URL): UrlOptions;
}
isClass(_object: Object): boolean;
appendWithTrailingNewlines(_str: string, _toAppend: string): string;
}
const U: Util;
export = U;
}