diff --git a/doc/api/n-api.md b/doc/api/n-api.md index 724d0f91edf43a..b9c45088ba415e 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -181,6 +181,12 @@ must provide a function satisfying the following signature which would get called upon the object's collection. Currently, `napi_finalize` can be used for finding out when objects that have external data are collected. +```C +typedef void (*napi_finalize)(napi_env env, + void* finalize_data, + void* finalize_hint); +``` + #### napi_async_execute_callback Function pointer used with functions that support asynchronous