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

Releases: rescript-association/genType

v2.27.0

12 Jun 18:09

Choose a tag to compare

  • In TypeScript, support --noImplicitAny also for indexing objects. (I.e. without --suppressImplicitAnyIndexErrors).
  • Add support for importing values which are default exports in commonjs.

v2.26.0

04 Jun 16:56

Choose a tag to compare

  • Give exact Flow type to empty objects.

v2.25.2

03 Jun 14:28

Choose a tag to compare

  • Add support for importing functions of polymorphic type.

v2.25.1

27 May 08:54

Choose a tag to compare

  • Fix: don't export the state type of components using the old record API.

v2.25.0

27 May 07:49

Choose a tag to compare

  • Fix: extend automatic @genTypeannotation to type arguments.
  • Fix issue when inlining type parameters across different modules.

v2.24.0

17 May 13:06

Choose a tag to compare

  • Don't delete generated files in case of type errors.
  • Apply object field mangling convention to named arguments in functions.
    This gives a unified treatment for renaming of object fields, functions, and function components.

v2.23.0

08 May 08:17

Choose a tag to compare

  • Preserve case when importing from a lower-case file name.
  • In TypeScript output, disable eslint rule import/first (on by default in newer react-scripts).
  • Generate explicit return type for the function that type checks an imported (record) component.

v2.22.0

24 Apr 08:45

Choose a tag to compare

  • Support import of function components.
  • Fix issue where only shallow conversion was generated for nested records defined in another file.
  • Opaque types are now generated only for type definitions annotated with [@genType.opaque].
    Unknown types now are left unchanged, so type errors will indicate that shims need to be added.
  • Show file name in react developer tools when importing function components.

v2.21.1

18 Apr 13:49

Choose a tag to compare

  • Fix parentheses in function components with Flow back-end.

v2.21.0

18 Apr 12:24

Choose a tag to compare

  • Make Flow type check function components.
  • Add experimental support for prop types. Add "propTypes": true and "language": "untyped" to the configuration.