本文整理匯總了TypeScript中incident.Incident函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript Incident函數的具體用法?TypeScript Incident怎麽用?TypeScript Incident使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Incident函數的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: createMinArrayLengthError
export function createMinArrayLengthError(array: ArrayLike<any>, min: number): MinArrayLengthError {
return Incident(name, {array, min}, format);
}
示例2: createInvalidTimestampError
export function createInvalidTimestampError(date: Date): InvalidTimestampError {
return Incident(name, {date}, format);
}
示例3: createInvalidFloat64Error
export function createInvalidFloat64Error(value: any, source?: any): InvalidFloat64Error {
return Incident(name, {value, source}, format);
}
示例4: createPatternNotMatchedError
export function createPatternNotMatchedError(pattern: RegExp, string: string): PatternNotMatchedError {
return Incident(name, {pattern, string}, format);
}
示例5: createMinUcs2StringLengthError
export function createMinUcs2StringLengthError(string: string, min: number): MinUcs2StringLengthError {
return Incident(name, {string, min}, format);
}
示例6: createLowerCaseError
export function createLowerCaseError(string: string): LowerCaseError {
return Incident(name, {string}, format);
}
示例7: createMaxCodepointsError
export function createMaxCodepointsError(string: string, count: number, max: number): MaxCodepointsError {
return Incident(name, {string, count, max}, format);
}
示例8: createInvalidIntegerError
export function createInvalidIntegerError(value: number, source?: any): InvalidIntegerError {
return Incident(name, {value, source}, format);
}
示例9: createInvalidArrayItemsError
export function createInvalidArrayItemsError(invalid: Map<number, Error>): InvalidArrayItemsError {
return Incident(name, {invalid});
}
示例10: createFiniteNumberError
export function createFiniteNumberError(value: number): FiniteNumberError {
return Incident(name, {value}, format);
}