Revision 0.31.7 (#562)

This commit is contained in:
sinclairzx81
2023-08-30 03:44:17 +09:00
committed by GitHub
parent c41d29ae3b
commit 233cc2215a
4 changed files with 12 additions and 4 deletions
+8
View File
@@ -246,3 +246,11 @@ import { Expect } from './assert'
const E4: E4 = false
const E5: E5 = true
}
{
// should correctly decode array
// https://github.com/sinclairzx81/typebox/issues/561
const T = Type.Object({
x: Type.Array(Type.Object({ y: Type.String() })),
})
Expect(T).ToStaticDecode<{ x: { y: string }[] }>()
}