Releases: rescript-association/genType
Releases · rescript-association/genType
v1.4.0
27 Nov 10:30
Compare
Sorry, something went wrong.
No results found
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
22 Nov 13:00
Compare
Sorry, something went wrong.
No results found
Auto propagate annotations to and from variant type declarations (not just normal type declarations).
Auto propagate annotations to types mentioned in exported values and components.
v1.2.1
20 Nov 10:17
Compare
Sorry, something went wrong.
No results found
Fix importing type via renaming. Need to export both the original and renamed type.
v1.2.0
14 Nov 16:55
Compare
Sorry, something went wrong.
No results found
Translate empty object types as {}. This avoids pulling in a shim for Js.t.
Support renaming via [@genType.as "name"] when exporting types.
v1.1.0
13 Nov 09:13
Compare
Sorry, something went wrong.
No results found
1.0.1
Emit import instead of require 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
09 Nov 06:38
Compare
Sorry, something went wrong.
No results found
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.
v0.28.0
06 Nov 05:55
Compare
Sorry, something went wrong.
No results found
Export first-class modules as records. Also allows to call functors from JS.
Sanitize name of JS variable when importing a value. (Replace "-" with "_").
Fix renaming of named argument when importing function type.
v0.27.1
02 Nov 07:44
Compare
Sorry, something went wrong.
No results found
v0.27.0
01 Nov 15:51
Compare
Sorry, something went wrong.
No results found
v0.26.0
31 Oct 16:53
Compare
Sorry, something went wrong.
No results found
Support importing types with type parameters.
Prevent imported values from being used directly from JS.