mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-21 14:25:22 -04:00
Modify some non-standard problems on TS side
Description
1. Modify incorrect export in cpp file
2. Delete invalid parameters
3. Add TS constraint type to the variable
4. Add braces to some if judgments
5. Package the same part of the code
#I52Q2E:Modify some non-standard problems on TS side
Signed-off-by: wangyong1995626wywz <wangyong237@huawei.com>
This commit is contained in:
@@ -56,7 +56,7 @@ static napi_module plainArrayModule = {
|
||||
.nm_flags = 0,
|
||||
.nm_filename = nullptr,
|
||||
.nm_register_func = PlainArrayInit,
|
||||
.nm_modname = "PlainArray",
|
||||
.nm_modname = "util.PlainArray",
|
||||
.nm_priv = ((void*)0),
|
||||
.reserved = { 0 },
|
||||
};
|
||||
@@ -65,4 +65,4 @@ extern "C" __attribute__ ((constructor)) void RegisterModule()
|
||||
{
|
||||
napi_module_register(&plainArrayModule);
|
||||
}
|
||||
}
|
||||
} // namespace OHOS::Util
|
||||
|
||||
Reference in New Issue
Block a user