Skip to content

[Feature request] Provide "Relater" typechecker api #2792

@artem1458

Description

@artem1458

Hey all!

It would be really convenient to have method isTypeAssignableTo from Relater (internal/checker/relater.go) provided in public api (js and possibly others?).

In current ts implementation (5.9) this method is internal, and some libraries using package @types/ts-expose-internals to use this method.
It can be used to implement a lot of different things at compile time, and I hope it's not a lot of work to expose and describe it.

Thanks!

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions