frida/frida-node

NativeCallback type in @types/frida-gum is outdated (and maybe some other classes too)

Meigyoku-Thmn opened this issue · 1 comments

In the docs, the NativeCallback class has the constructor like this:

new NativeCallback(func, returnType, argTypes[, abi])

But its type definition in @types/frida-gum is:

declare class NativeCallback extends NativePointer {
    constructor(func: NativeCallbackImplementation, retType: NativeType, argTypes: NativeType[]);
}

Can you update the type definition for NativeCallback?

Thanks, great catch! I've included the fix in my pending PR.