I can't figure out how to get the `Napi::Function&` constructor of an object. I would like to use InstanceOf (https://github.com/nodejs/node-addon-api/blob/main/doc/object.md#instanceof) It looks like a constructor is extracted from an object using Napi::Type::Type, like in https://github.com/nodejs/node-addon-api/blob/main/doc/function.md#constructor, but when I use Napi::Date::Date, I get the following problem: ``` error: cannot convert ‘<unresolved overloaded function type>’ to ‘const Napi::Function&’ 59 | bool is_date = value.ToObject().InstanceOf(Napi::Date::Date); | ``` I don't know much about c++ by the way
I can't figure out how to get the
Napi::Function&constructor of an object. I would like to use InstanceOf (https://github.com/nodejs/node-addon-api/blob/main/doc/object.md#instanceof)It looks like a constructor is extracted from an object using Napi::Type::Type, like in https://github.com/nodejs/node-addon-api/blob/main/doc/function.md#constructor, but when I use Napi::Date::Date, I get the following problem:
I don't know much about c++ by the way