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

document what gentype did from build system point of view

bobzhang opened this issue · comments

What's the input files and output files, is it stand alone, e.g a.gen.ts only depends on a.cmt , or it has cross module dependencies?

The initial input is a.cmt, but just like with compilation, other .cmt files might be accessed, e.g. to resolve type definitions used in a. Basically, if a can be compiled, then genType can be run on it.