@brasil-interface/utils
Version:
21 lines • 987 B
TypeScript
export declare namespace Assert {
class String {
static isDefined(value: unknown): boolean;
static isNotEmpty(value: string): boolean;
static hasLengthOf(value: string, length: number): boolean;
static startsWith(value: string, start: string): boolean;
static endsWith(value: string, end: string): boolean;
static contains(value: string, contains: string): boolean;
static containsOnlyNumbers(value: string): boolean;
static containsValueAt(value: string, index: number, expectedValue: string): boolean;
static containsValueAtRange(value: string, start: number, end: number, expectedValue: string): boolean;
}
class Number {
static isWithinRange(value: number, min: number, max: number): boolean;
}
class Array {
static contains<T>(value: T, values: T[]): boolean;
static notContains(value: string, values: string[]): boolean;
}
}
//# sourceMappingURL=Assert.d.ts.map