Skip to content

Commit

Permalink
fix: 🐛 type
Browse files Browse the repository at this point in the history
  • Loading branch information
hcfw007 committed Feb 5, 2025
1 parent 599fa5b commit bbe278a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
13 changes: 2 additions & 11 deletions src/model/mq.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { types } from "@juzi/wechaty-puppet"
import * as PuppetDTO from "./puppet"

export interface MqSendMessage {
Expand All @@ -9,7 +10,7 @@ export interface MqSendMessage {
export interface MqReceiveMessage {
traceId: string
type: MqMessageType
eventType?: MqEventType
eventType?: types.PuppetEventName,
data: string
code?: number
error?: string
Expand Down Expand Up @@ -52,16 +53,6 @@ export enum MqCommandType {
logout = 'logout',
}

export enum MqEventType {
dong = 'dong',
login = 'login',
loginUrl = 'loginUrl',
postComment = 'postComment',
dirty = 'dirty',
logout = 'logout',
ready = 'ready',
}

export interface MqCommandResponseWaiter {
resolver: (data: any) => void
rejector: (e: Error) => void
Expand Down
1 change: 0 additions & 1 deletion src/mq/mq-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { sleep, SECOND, MINUTE } from '../util/time.js'
import {
MqCommandResponseWaiter,
MqCommandType,
MqEventType,
MqMessageType,
MqReceiveMessage,
MqRequest,
Expand Down

0 comments on commit bbe278a

Please sign in to comment.