mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-25 07:53:20 +00:00
Revision 0.31.7 (#562)
This commit is contained in:
@@ -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 }[] }>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user