目录

What should I do if using the Node-API generation feature results in the "Unsupported parameter type." or "Unsupported return type." error?

Symptom

An error occurs for generating glue code when you right-click a function and choose Generate... > NAPI from the shortcut menu.

Solution

Modify the function parameter or return value type to a type that is supported.

Currently, the following types are supported, with JS types indicated before the colon (:) and their corresponding C++ types following after:

The following types are not supported: