topkat-utils
Version:
A comprehensive collection of TypeScript/JavaScript utility functions for common programming tasks. Includes validation, object manipulation, date handling, string formatting, and more. Zero dependencies, fully typed, and optimized for performance.
22 lines (21 loc) • 663 B
TypeScript
import { ValidatorObject } from './validation-utils';
import { Override } from './types';
export declare const restTestMini: {
throwOnErr: boolean;
reset(throwOnErr?: boolean): void;
newErr(err: any): void;
printStats(): void;
nbSuccess: number;
nbError: number;
lastErrors: any[];
};
/** if validatorObject param is not set then it will consider checking that the value is set
*
* @param description
* @param value
* @param validatorObject
*/
export declare function assert(description: string, value: any, validatorObject?: Override<ValidatorObject, {
value?: never;
name?: never;
}> | number | boolean | string): void;