Skip to content

Wrong types for js bindings #340

Open
@ghost

Description

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

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/f5925b6c95f53653f35ce3f83fcda1ba9b1e04a6/types/adblock-rs/index.d.ts#L27C43-L27C65

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions