This repository was archived by the owner on Nov 13, 2023. It is now read-only.
Releases: rescript-association/genType
Releases · rescript-association/genType
v3.15.0
v3.14.0
v3.13.0
- Support new internal representation of
bs.methused in the forthcoming bucklescript 7.2.0. - Experimental global dead code/type analysis with CLI
-dceand-dce-cmtfor bucklescript and native projects respectively.
Environment variablesWhitelist=prefixandBlacklist=prefixcan be used to filter which results are reported based on their paths. UseWrite=1to write@deadannotations directly in the source files.
v3.12.0
Add support for jsdoc comments in generated TypeScript output, and improve the naming of function arguments.
- Emit Reason doc commments
/** this is a doc comment */as jsdoc in the TypeScript output. - Preserve the parameter names in function types emitted by the TypeScript back-end.
- Treat a function with a single argument of unit type as if it had no arguments.
Example:
/**
* Sign a message with a key.
*
* @param message - A message to be signed
* @param key - The key with which to sign the message
* @returns A signed message
*/
[@genType]
let signMessage = (. message, key) => message ++ string_of_int(key);produces
/**
* Sign a message with a key.
*
* @param message - A message to be signed
* @param key - The key with which to sign the message
* @returns A signed message
*/
export const signMessage: (message:string, key:number) => string = DocstringsBS.signMessage;v3.11.0
v3.10.0
Changes:
- 4daa1af 3.10.0
- 57fb2d7 Fix issues where
@genType.ason a type definition would omit type parameters. - 820d154 Update README.md
- 5a33aa2 Update README.md
- d82df74 [arnold] termination types.
- fabfdc7 [arnold] Riddle.
- 4cbd75d [arnold] Make Nothing command explicit to avoid no-op returning the previous command's Some/None.
- aaf219f [arnold] example function that makes no progress yet appears to because doing nothing preserves returning Some/None.
This list of changes was auto generated.
v3.9.1
v3.9.0
v3.8.1
v3.8.0
- Alias
Js.Array2.tto array type. - Add support for
[@unboxed]which will be introduced in the next buclescript version.
See https://caml.inria.fr/pub/docs/manual-ocaml/manual035.html.