This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
Releases: rescript-association/genType
Releases · rescript-association/genType
v1.4.0
- Adapt bs-platform lib import path depending on the module kind specified in config.
- Add -clean command to delete all the generated files.
- Fix: translation of variant types should be the identity.
- Avoid accidental variable name capture when generating constructors functions for variants.
- TypeScript: avoid type errors when converting function types by giving arguments type
any
.
v1.3.0
v1.2.1
v1.2.0
v1.1.0
1.0.1
- Emit
import
instead ofrequire
with ES6 modules in Flow/Untyped back-end, except when import cycles are possible (Reason importing JS values/components). PR. - Add support for
@genType.as
when importing values from JS. This supports renaming, importing default values, and importing nested values via a path.
v1.0.0
BREAKING CHANGE
- Change the extension of generated files to
.gen.tsx
(TS) and.gen.js
(Flow/Untyped). #90
OTHER CHANGES
- Don’t import type dependencies for opaque types.
- Add
bsconfig.json
option "generatedFileExtension" to configure the extension used for generated files. - Remove (undocumented)
genType.importStrictLocal
and always allow imports from non-scrict Flow types.