fix: type-check
This commit is contained in:
1 parent
1bb6dce239
commit
7221f4ac02
1 file changed
+1
-1
@@ -5,7 +5,7 @@ import { ActionName } from '@/onebot/action/router';
|
||||
import { Static, Type } from '@sinclair/typebox';
|
||||
|
||||
const SchemaData = Type.Object({
|
||||
no_cache: Type.Union([Type.Boolean(), Type.String()]),
|
||||
no_cache: Type.Optional(Type.Union([Type.Boolean(), Type.String()])),
|
||||
});
|
||||
|
||||
type Payload = Static<typeof SchemaData>;
|
||||
|
||||
Reference in new issue
Block a user