Skip to content

Commit 71a3448

Browse files
committed
add docstrings
1 parent 2b00aaf commit 71a3448

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

jscomp/gentype/GenTypeConfig.ml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
module ModuleNameMap = Map.Make (ModuleName)
22

33
type module_ = CommonJS | ES6
4-
type moduleResolution = Node | Node16 | Bundler
4+
5+
(** Compatibility for `compilerOptions.moduleResolution` in TypeScript projects. *)
6+
type moduleResolution =
7+
| Node (** should drop extension on import statements *)
8+
| Node16
9+
(** should use TS output's extension (e.g. `.gen.js`) on import statements *)
10+
| Bundler
11+
(** should use TS input's extension (e.g. `.gen.tsx`) on import statements *)
12+
513
type bsVersion = int * int * int
614

715
type t = {

0 commit comments

Comments
 (0)