So my problem is that I have several apis (written in cpp) which someone else use it to build a native node module (.node). Then, I write a Typescript wrapper for those api methods. Now my problem is can I somehow write a unit test to check whether I miss any methods (that exist in cpp api but do not exist in Typescript) ?
For example:
C++ api
api::Value Engine::start(const Napi::CallbackInfo& info)
{
///do something
}
Napi::Value Engine::exit(const Napi::CallbackInfo& info)
{
///do something
}
Typescript api
export default Engine {
start(): void;
}
So in this case, my typescript api is missing exit method. Is it possible to know that it is missing and not complete.
Thank you.