MCPcopy Create free account
hub / github.com/astercloud/aster / isValidationError

Function isValidationError

ui/src/types/ui-protocol.ts:704–706  ·  view source on GitHub ↗
(error: ProtocolError)

Source from the content-addressed store, hash-verified

702 * 判断是否为验证错误
703 */
704export function isValidationError(error: ProtocolError): error is ValidationError {
705 return error.code === 'VALIDATION_FAILED' && error.path !== undefined;
706}
707
708/**
709 * 创建验证错误

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected