Skip to content

Commit

Permalink
完善类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Oct 2, 2023
1 parent 75e43dc commit a13552c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rubick-native",
"version": "0.0.9",
"version": "0.0.8",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
14 changes: 11 additions & 3 deletions src/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ export type EventKeyType = "Alt" |
"Kp8" |
"Kp9" |
"KpDelete" |
"Function"
"Function" | {
Unknown: number
}

export type EventBtnType = "Left" |
"Right" |
"Middle" | {
Unknown: number
}

export interface MouseKeyBoardEventOther {
time: {
Expand All @@ -115,9 +123,9 @@ export interface MouseKeyBoardEventOther {
event_type: {
"KeyRelease": EventKeyType
} | {
"ButtonPress": EventKeyType
"ButtonPress": EventBtnType
} | {
"ButtonRelease": EventKeyType
"ButtonRelease": EventBtnType
} | {
"MouseMove": { x: number, y: number }
} | {
Expand Down

0 comments on commit a13552c

Please sign in to comment.