style: 强类型大法
This commit is contained in:
1 parent
ac193cc94a
commit
15854c605b
191 files changed
+923
-806
No files matched your search
@@ -12,8 +12,8 @@ const SchemaData = Type.Object({
|
||||
type Payload = Static<typeof SchemaData>;
|
||||
|
||||
export default class SetGroupAddRequest extends OneBotAction<Payload, null> {
|
||||
actionName = ActionName.SetGroupAddRequest;
|
||||
payloadSchema = SchemaData;
|
||||
override actionName = ActionName.SetGroupAddRequest;
|
||||
override payloadSchema = SchemaData;
|
||||
|
||||
async _handle(payload: Payload): Promise<null> {
|
||||
const flag = payload.flag.toString();
|
||||
|
||||
Reference in new issue
Block a user