Use undefined as the return type of the function will trigger eslint rule @typescript-eslint/no-unsafe-call when call the function.
I do a quick check of the C code and seem that this function return an int status code, so I change the return type to number.
Use
undefined
as the return type of the function will trigger eslint rule@typescript-eslint/no-unsafe-call
when call the function. I do a quick check of the C code and seem that this function return an int status code, so I change the return type tonumber
.