Fixed PPT exports

This commit is contained in:
WolverinDEV 2019-07-03 15:18:49 +02:00
parent 30e3d8ff09
commit 755c008def
3 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ updater/postzip/TeaClient-linux.tar.gz
.deploy_secret .deploy_secret
**/*.d.ts **/*.d.ts
!
!modules/renderer/imports/.copy_*.d.ts !modules/renderer/imports/.copy_*.d.ts
package-lock.json package-lock.json

View File

@ -1,2 +1,3 @@
.idea/ .idea/
cmake-build-* cmake-build-*
!exports/*.d.ts

21
native/ppt/exports/exports.d.ts vendored Normal file
View File

@ -0,0 +1,21 @@
declare module "teaclient_ppt" {
enum KeyEventType {
PRESS = 0,
RELEASE = 1,
TYPE = 2
}
export interface KeyEvent {
type: KeyEventType;
key_code: string;
key_shift: boolean;
key_alt: boolean;
key_windows: boolean;
key_ctrl: boolean;
}
export function RegisterCallback(_: (_: KeyEvent) => any);
export function UnregisterCallback(_: (_: KeyEvent) => any);
}