@bitblit/ratchet-common
Version:
Common tools for general use
12 lines (11 loc) • 689 B
TypeScript
export declare class RequireRatchet {
static isNullOrUndefined(ob: any): boolean;
static notNullOrUndefined(ob: any, name?: string): void;
static notNullUndefinedOrOnlyWhitespaceString(ob: string, name?: string): void;
static notNullUndefinedOrEmptyArray(ob: any[], name?: string): void;
static equal(ob1: any, ob2: any, message?: string): void;
static true(ob: boolean, message?: string): void;
static noNullOrUndefinedValuesInArray(arr: any[], expectedLength?: number, customMsg?: string): void;
static noNullOrUndefinedValuesInRestArgs(expectedLength: number, ...restArgs: any[]): void;
static constructorArgumentsMatchLengthAndAreNonNull(): void;
}