rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Gentype: preserve linebreaks in docstrings

Open cometkim opened this issue 2 years ago • 0 comments

Currently gentype doesn't seem to preserve JSDoc format in the output. I think it's a bug.

input:

/**
 * Test
 */
@genType
type test = {
  foo: int
}

output:

/** * Test */
export type test = { readonly foo: number };
image

cometkim avatar Nov 15 '23 13:11 cometkim