mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-28 08:58:45 +00:00
Revision 0.32.35 (#932)
* Support Any and Never Record Keys * Update Require Property Message * Ensure Record Enumerable on Convert * TypeScript 5.5.3 * Version
This commit is contained in:
@@ -189,3 +189,16 @@ import { Type, Static } from '@sinclair/typebox'
|
||||
'$propC': string
|
||||
}>()
|
||||
}
|
||||
// ------------------------------------------------------------------
|
||||
// https://github.com/sinclairzx81/typebox/issues/916
|
||||
// ------------------------------------------------------------------
|
||||
{
|
||||
const K = Type.Any()
|
||||
const T = Type.Record(K, Type.String())
|
||||
Expect(T).ToStatic<Record<string, string>>()
|
||||
}
|
||||
{
|
||||
const K = Type.Never()
|
||||
const T = Type.Record(K, Type.String())
|
||||
Expect(T).ToStatic<{}>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user