Skip to content

Commit ebc02e1

Browse files
feat: update headers from nodejs/node tag v25.4.0 (#70)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a7f4bb0 commit ebc02e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/js_native_api_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ typedef enum {
111111
napi_float64_array,
112112
napi_bigint64_array,
113113
napi_biguint64_array,
114+
#define NODE_API_HAS_FLOAT16_ARRAY
115+
napi_float16_array,
114116
} napi_typedarray_type;
115117

116118
typedef enum {

include/node_api_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
typedef napi_value(NAPI_CDECL* napi_addon_register_func)(napi_env env,
77
napi_value exports);
8+
// False positive: https://github.com/cpplint/cpplint/issues/409
9+
// NOLINTNEXTLINE (readability/casting)
810
typedef int32_t(NAPI_CDECL* node_api_addon_get_api_version_func)(void);
911

1012
typedef struct napi_callback_scope__* napi_callback_scope;

0 commit comments

Comments
 (0)