Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-api,doc: document parms which can be optional #41021

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions doc/api/n-api.md
Expand Up @@ -4735,7 +4735,8 @@ napi_status napi_new_instance(napi_env env,
as a constructor.
* `[in] argc`: The count of elements in the `argv` array.
* `[in] argv`: Array of JavaScript values as `napi_value` representing the
arguments to the constructor.
arguments to the constructor. If `argc` is zero this parameter may be
omitted by passing in `NULL`.
* `[out] result`: `napi_value` representing the JavaScript object returned,
which in this case is the constructed object.

Expand Down Expand Up @@ -5512,7 +5513,8 @@ NAPI_EXTERN napi_status napi_make_callback(napi_env env,
* `[in] func`: `napi_value` representing the JavaScript function to be invoked.
* `[in] argc`: The count of elements in the `argv` array.
* `[in] argv`: Array of JavaScript values as `napi_value` representing the
arguments to the function.
arguments to the function. If `argc` is zero this parameter may be
omitted by passing in `NULL`.
* `[out] result`: `napi_value` representing the JavaScript object returned.

Returns `napi_ok` if the API succeeded.
Expand Down