doc: fix optional parameters in n-api.md
The thread_finalize_data
and thread_finalize_cb
parameters in
napi_create_threadsafe_function
are optional.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines