mirror of
https://github.com/zoriya/typebox.git
synced 2026-05-29 17:34:09 +00:00
Revision 0.31.12 (#581)
* Detected Empty Enum via Reverse Extends Check * Version
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ import { Type } from '@sinclair/typebox'
|
||||
// expect empty enum to be string (as empty enums T[keyof T] evaluates as string)
|
||||
enum E {}
|
||||
const T = Type.Enum(E)
|
||||
Expect(T).ToStatic<string>()
|
||||
Expect(T).ToStaticNever()
|
||||
}
|
||||
{
|
||||
// expect empty enum to be never
|
||||
|
||||
Reference in New Issue
Block a user