本文整理汇总了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);
}