Skip to content

Missing napi_type_tag_object for Napi::External? #1293

Closed
@audetto

Description

@audetto

#1261

This PR added support for napi_type_tag_object, but it did so for Napi::Object.
This API is mostly useful for Napi::Externals which do no inherit from Napi::Object.

node-addon-api/napi.h

Lines 984 to 991 in b16c762

void TypeTag(const napi_type_tag* type_tag) const;
bool CheckTypeTag(const napi_type_tag* type_tag) const;
#endif // NAPI_VERSION >= 8
};
template <typename T>
class External : public Value {
public:

Should this api be moved down to Napi::Value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions