Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Releases: rescript-association/genType

v0.16.0

10 Oct 10:19

Choose a tag to compare

v0.16.0 Pre-release
Pre-release
  • Support type Js.nullable in addition to Js.Nullable.t.
  • Fix import name compare which can lead to missing type imports with the same name from diffent files.
  • Add missing conversion from float to number.
  • Add initial shim for Js.Array.t.
  • Js.Null_undefined.t and Js.null_undefined are the same as nullable.
  • Array types are not opaque.
  • Shims for Obj.
  • New format form shims: {"fromModuleName": "toModuleName"}.
  • Cleaner generated output, with some basic pretty-printing heuristics.
  • Generate TS code compatible with --strictPropertyInitialization.

v0.15.0

08 Oct 07:29

Choose a tag to compare

v0.15.0 Pre-release
Pre-release

Add configuration options to gentypeconfig.json for module, importPath, reasonReactPath, bsBlockPath.
Print version information with -help and -version.

v0.14.0: Add config option “importPath” for node/relative import paths.

07 Oct 09:28

Choose a tag to compare

Improve support for checking JS components used from Reason.
Support for nullable types Js.Nullable.t.
Avoid generation of type any: use mixed (Flow) or unknown (TS) instead.
Add ReactEvent shims for TypeScript.
Use type “void” instead of “typeof undefined”.
Fix converter for options to JS in nested case.
Simplify converter for optional record fields.
Support nullable types whose argument requires conversion.
Support for object types: Js.t(...).

Treat optional(_) fields of object types as with records (no conversion JS <-> Reason).

v0.13.0

05 Oct 09:20

Choose a tag to compare

v0.13.0 Pre-release
Pre-release

Stricter checks for FlowType.
[FlowType] include @generated and @NOLINT in prelude.
Support CommonJS export.
Fix export function type: not opaque.
Support nested modules in shim files.

v0.12.0: Rename genFlow to genType (#44)

02 Oct 07:23
ba6dd2b

Choose a tag to compare

Rename the project to genType, the executable to gentype.native,
the config to gentypeconfig.json, the log to .genTypeLog.

v0.11.0

01 Oct 17:14

Choose a tag to compare

v0.11.0 Pre-release
Pre-release

Import type definitions from other files.

Allow gentypeconfig.json in addition to genflowconfig.json.

v0.10.0

29 Sep 21:00

Choose a tag to compare

v0.9.0

27 Sep 07:24

Choose a tag to compare

v0.9.0 Pre-release
Pre-release

Support conversion of types with free type variables.

Depecate -setProjectRoot CLI option. The project root is now found automatically and the option ignored.

v0.8.0

16 Sep 17:27

Choose a tag to compare

v0.8.0 Pre-release
Pre-release

Add "export default ComponentName" for TypeScript.

Fix: props are contravariant.

Use @genType annotation (the @Genflow annotation is still supported for
backward compatibility).

v0.7.0

28 Aug 18:59

Choose a tag to compare

v0.7.0 Pre-release
Pre-release
Bump version to v0.7.0.