refactor: checkDate

This commit is contained in:
手瓜一十雪 committed 2024-05-30 22:41:51 +08:00
1 parent 1e0820d613
commit decc5fb3c0
21 files changed
+28 -28

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ const SchemaData = {
type: 'object',
properties: {
message_id: { type: 'number' },
group_id: { type: 'number' },
user_id: { type: 'number' }
group_id: { type: [ 'number' , 'string' ] },
user_id: { type: [ 'number' , 'string' ] }
},
required: ['message_id']
} as const satisfies JSONSchema;
+2 -2
View File
@@ -8,8 +8,8 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts';
const SchemaData = {
type: 'object',
properties: {
user_id: { type: 'number' },
group_id: { type: 'number' }
user_id: { type: [ 'number' , 'string' ] },
group_id: { type: [ 'number' , 'string' ] }
}
} as const satisfies JSONSchema;