fix: type-check
This commit is contained in:
1 parent
fb3370ccf9
commit
ded6ff324c
1 file changed
+1
-1
@@ -5,7 +5,7 @@ import { ActionName } from '@/onebot/action/router';
|
|||||||
import { Static, Type } from '@sinclair/typebox';
|
import { Static, Type } from '@sinclair/typebox';
|
||||||
|
|
||||||
const SchemaData = Type.Object({
|
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>;
|
type Payload = Static<typeof SchemaData>;
|
||||||
|
|||||||
Reference in new issue
Block a user