rescript-association / genType

Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.

Home Page:https://rescript-lang.org/docs/gentype/latest/introduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

genType assumes other ML files are in the same directory

NatKarmios opened this issue · comments

When using types from a local Caml module in a different directory, genType doesn't seem to properly compute the module's location. This leads to erroring TypeScript code.
This isn't a problem when using a type from a ReScript module.

See this repository for an example:
https://github.com/NatKarmios/gentype-wrong-import

This repository is being archived. If you feel like the issue still relevant, please re-create it in the compiler repo. Thanks!