Skip to content

Commit 6b9ca34

Browse files
committed
Resolve TS 5.0.4 Issue
1 parent 137e9c5 commit 6b9ca34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/type/types/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function IssuesFromLocalizedError(error: TLocalizedValidationError): StandardSch
163163
function IssuesFromUnknown(error: object): StandardSchemaV1.Issue[] {
164164
const path = Guard.HasPropertyKey(error, 'path') && Guard.IsArray(error.path) && error.path.every(segment => Guard.IsString(segment)) ? error.path : []
165165
const message = Guard.HasPropertyKey(error, 'message') && Guard.IsString(error.message) ? error.message : 'unknown'
166-
return [{ path, message }]
166+
return [{ path, message } as StandardSchemaV1.Issue]
167167
}
168168
// --------------------------------------------------------
169169
// CreateIssues

0 commit comments

Comments
 (0)