UNPKG

@rr0/common

Version:

Common and utility classes

17 lines (16 loc) 524 B
export declare abstract class Assert { abstract ok(something: any, message?: string): void; static instance: Assert; /** * Provide an Assert instance suited to the environment (browser or NodeJS) */ static getInstance(): Promise<Assert>; } export declare class BrowserAssert extends Assert { ok(something: any, message?: string): void; } export declare class NodeAssert extends Assert { protected assert: any; constructor(assert: any); ok(something: any, message?: string): void; }