Revision 0.28.5 (#409)

This commit is contained in:
sinclairzx81
2023-04-23 13:48:01 +09:00
committed by GitHub
parent 376e482737
commit 35b1bb9ec9
5 changed files with 66 additions and 32 deletions
+14
View File
@@ -48,3 +48,17 @@ import { Type, Static } from '@sinclair/typebox'
Expect(R).ToInfer<never>()
}
{
const A = Type.Object({})
const R = Type.Index(A, Type.BigInt()) // Support Overload
Expect(R).ToInfer<never>()
}
{
const A = Type.Array(Type.Number())
const R = Type.Index(A, Type.BigInt()) // Support Overload
Expect(R).ToInfer<never>()
}