simplerestclients
Version:
A library of components for accessing RESTful services with javascript/typescript.
11 lines (10 loc) • 467 B
TypeScript
/**
* utils.ts
* Copyright: Microsoft 2019
*/
export declare const assert: (cond: boolean, message: string) => void;
export declare const isObject: (value: any) => value is object;
export declare const isString: (value: any) => value is string;
export declare const attempt: <T>(func: (...args: any[]) => T, ...args: any[]) => Error | T;
export declare const remove: <T = any>(array: T[], value: any) => void;
export declare const clone: <T = any>(value: T) => T;