UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
16 lines (15 loc) 713 B
/** * @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; }