feat: update headers from nodejs/node tag v26.1.0 (#73)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
diff --git a/include/js_native_api_types.h b/include/js_native_api_types.h
index a0da104..dc4922e 100644
--- a/include/js_native_api_types.h
+++ b/include/js_native_api_types.h
@@ -157,6 +157,10 @@
typedef napi_finalize node_api_nogc_finalize;
typedef node_api_nogc_finalize node_api_basic_finalize;
+// A finalizer that can be called from any thread and at any time.
+typedef void(NAPI_CDECL* node_api_noenv_finalize)(void* finalize_data,
+ void* finalize_hint);
+
typedef struct {
// One of utf8name or name should be NULL.
const char* utf8name;