Revision 0.29.3 (#487)

This commit is contained in:
sinclairzx81
2023-07-04 07:27:22 +09:00
committed by GitHub
parent c8d8a701c7
commit da10cc09fa
3 changed files with 12 additions and 3 deletions
+9
View File
@@ -91,3 +91,12 @@ import { Type } from '@sinclair/typebox'
const K = Type.KeyOf(T)
Expect(K).ToInfer<'a' | 'b' | 'c' | 'd'>()
}
{
const T = Type.Object({
a: Type.Optional(Type.String()),
b: Type.Optional(Type.String()),
c: Type.Optional(Type.String()),
})
const K = Type.KeyOf(T)
Expect(K).ToInfer<'a' | 'b' | 'c'>()
}