Wrong types for js bindings
darahe opened this issue · 2 comments
darahe commented
request_type
Current:
request_type: string
Expected:
request_type: RequestType // union type or enum
engine.check
Current:
check(url: string, source_url: string, request_type: string, debug?: boolean): boolean;
Expected:
check(url: string, source_url: string, request_type: string, debug?: boolean): boolean | DebugObject; // it returns object with debug info if debug is true
diracdeltas commented
antonok-edm commented
interesting, I didn't realize there were 3rd-party type bindings for this repo. Probably the issue should be filed there instead?
I guess the ideal solution would be to migrate the types into this repo... I'm not a TS expert but I will investigate options.