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

' character in types creates invalid TS syntax

johnridesabike opened this issue · comments

@gentype
type t' = int

Outputs:

// tslint:disable-next-line:interface-over-type-literal
export type t' = number;

Perhaps it should compile to t$prime, like how the ReScript compiler treats values with ' characters?