microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
17 lines (16 loc) • 822 B
TypeScript
/**
* @class Contracts
* @private
*/
export declare class Contracts {
static throwIfNullOrUndefined(param: any, name: string): void;
static throwIfNull(param: any, name: string): void;
static throwIfNullOrWhitespace(param: string, name: string): void;
static throwIfNullOrTooLong(param: string, name: string, maxLength: number): void;
static throwIfNullOrTooShort(param: string, name: string, minLength: number): void;
static throwIfDisposed(isDisposed: boolean): void;
static throwIfArrayEmptyOrWhitespace(array: string[], name: string): void;
static throwIfFileDoesNotExist(param: string, name: string): void;
static throwIfNotUndefined(param: any, name: string): void;
static throwIfNumberOutOfRange(value: number, name: string, rangeStart: number, rangeEnd: number): void;
}