ocsigen / ts2ocaml

Generate OCaml bindings from TypeScript definitions via the TypeScript compiler API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intrinsic types are not supported

tmattio opened this issue · comments

ts2ocaml fails to run on TypeScript definitions containing intrinsic types. For instance, this line:

type Uppercase<S extends string> = intrinsic;

in lib.es5.d.ts

will generate:

[@@@js.implem 
  module type Missing = sig
    module intrinsic : sig
      type t_0
      val t_0_to_js: t_0 -> Ojs.t
      val t_0_of_js: Ojs.t -> t_0
    end
  end
]