From 8ed01e6361acfad369faabb0c12995dff8567673 Mon Sep 17 00:00:00 2001 From: Han Date: Tue, 5 Nov 2024 13:58:05 +0800 Subject: [PATCH] Add the Kit for Napi. issue: https://gitee.com/openharmony/interface_sdk_c/issues/IB25XD Signed-off-by: Han --- arkui/napi/native_api.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arkui/napi/native_api.h b/arkui/napi/native_api.h index a45ce8476..2e845206e 100644 --- a/arkui/napi/native_api.h +++ b/arkui/napi/native_api.h @@ -16,6 +16,19 @@ #ifndef FOUNDATION_ACE_NAPI_INTERFACES_KITS_NAPI_NATIVE_API_H #define FOUNDATION_ACE_NAPI_INTERFACES_KITS_NAPI_NATIVE_API_H +/** + * @file native_api.h + * + * @brief Provides the NAPI API define. + * + * Node-API insulates addons from changes in the underlying JS engine and allows the modules compiled + * for one major version to run on later major versions without recompilation. + * The OpenHarmony Node-API component optimizes the Node-API implementation and provides interaction with + * underlying engines such as ArkJS. Currently, the OpenHarmony Node-API component does not support all Node-API APIs. + * @kit ArkTS + * @syscap SystemCapability.ArkUI.ArkUI.Napi + * @since 11 + */ #ifndef NAPI_VERSION #define NAPI_VERSION 8 #endif -- Gitee