From e0704f6045308f238c7a7ab1977ead26c793276c Mon Sep 17 00:00:00 2001 From: l30075025 <2656510672@qq.com> Date: Wed, 30 Apr 2025 15:41:11 +0800 Subject: [PATCH 1/2] fix Signed-off-by: l30075025 <2656510672@qq.com> --- .vscode/project_codecheck_config.json | 1 + api/@ohos.multimodalInput.inputConsumer.d.ts | 4 ++-- api/@ohos.multimodalInput.inputEvent.d.ts | 2 +- api/@ohos.multimodalInput.inputEventClient.d.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .vscode/project_codecheck_config.json diff --git a/.vscode/project_codecheck_config.json b/.vscode/project_codecheck_config.json new file mode 100644 index 0000000000..2e5ca54151 --- /dev/null +++ b/.vscode/project_codecheck_config.json @@ -0,0 +1 @@ +{"buildScriptPath":"","synRulesRepo":"https://gitee.com/openharmony/interface_sdk-js.git","synRulesBranch":""} \ No newline at end of file diff --git a/api/@ohos.multimodalInput.inputConsumer.d.ts b/api/@ohos.multimodalInput.inputConsumer.d.ts index ec5c99af69..7dae5bd77d 100644 --- a/api/@ohos.multimodalInput.inputConsumer.d.ts +++ b/api/@ohos.multimodalInput.inputConsumer.d.ts @@ -92,7 +92,7 @@ declare namespace inputConsumer { /** * Defines the shortcut key structure. * - * @typedef HotkeyOptions + * @interface HotkeyOptions * @syscap SystemCapability.MultimodalInput.Input.InputConsumer * @since 14 */ @@ -128,7 +128,7 @@ declare namespace inputConsumer { /** * Key consunption settings. * - * @typedef KeyPressedConfig + * @interface KeyPressedConfig * @syscap SystemCapability.MultimodalInput.Input.InputConsumer * @since 16 */ diff --git a/api/@ohos.multimodalInput.inputEvent.d.ts b/api/@ohos.multimodalInput.inputEvent.d.ts index 65053adb01..65e05ff369 100644 --- a/api/@ohos.multimodalInput.inputEvent.d.ts +++ b/api/@ohos.multimodalInput.inputEvent.d.ts @@ -28,7 +28,7 @@ /** * InputEvent * - * @typedef InputEvent + * @interface InputEvent * @syscap SystemCapability.MultimodalInput.Input.Core * @atomicservice * @since 12 diff --git a/api/@ohos.multimodalInput.inputEventClient.d.ts b/api/@ohos.multimodalInput.inputEventClient.d.ts index fc4b4d1811..04fd6cff44 100644 --- a/api/@ohos.multimodalInput.inputEventClient.d.ts +++ b/api/@ohos.multimodalInput.inputEventClient.d.ts @@ -184,7 +184,7 @@ declare namespace inputEventClient { * @systemapi hide for inner use * @since 12 */ - function injectEvent({ KeyEvent: KeyEvent }): void; + function injectEvent({ KeyEvent: KeyEvent }: { KeyEvent: any; }): void; /** * Inject mouse event. -- Gitee From a98d1bde0aaa981790c83cf9efbe641aaca2bc1e Mon Sep 17 00:00:00 2001 From: l30075025 <2656510672@qq.com> Date: Wed, 30 Apr 2025 16:20:47 +0800 Subject: [PATCH 2/2] fix --- api/@ohos.multimodalInput.inputEvent.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.multimodalInput.inputEvent.d.ts b/api/@ohos.multimodalInput.inputEvent.d.ts index 65e05ff369..cee8fc0397 100644 --- a/api/@ohos.multimodalInput.inputEvent.d.ts +++ b/api/@ohos.multimodalInput.inputEvent.d.ts @@ -28,7 +28,7 @@ /** * InputEvent * - * @interface InputEvent + * @interface InputEvent * @syscap SystemCapability.MultimodalInput.Input.Core * @atomicservice * @since 12 -- Gitee