Skip to content

Commit 7936860

Browse files
committed
add gentype details
1 parent 2f3aa82 commit 7936860

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,10 +1438,30 @@ Alternatively, use the `@@deprecated` decorator to add a deprecation warning to
14381438
14391439
[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#expression-deprecated-decorator).|};
14401440
] );
1441-
("genType", [""]);
1442-
("genType.as", [""]);
1443-
("genType.import", [""]);
1444-
("genType.opaque", [""]);
1441+
( "genType",
1442+
[
1443+
{|The @genType decorator may be used to export ReScript values and types to JavaScript, and import JavaScript values and types into ReScript. It allows seamless integration of compiled ReScript modules in existing TypeScript, Flow, or plain JavaScript codebases, without loosing type information across different type systems.
1444+
1445+
[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#gentype-decorator).|};
1446+
] );
1447+
( "genType.as",
1448+
[
1449+
{|The @genType decorator may be used to export ReScript values and types to JavaScript, and import JavaScript values and types into ReScript. It allows seamless integration of compiled ReScript modules in existing TypeScript, Flow, or plain JavaScript codebases, without loosing type information across different type systems.
1450+
1451+
[Read more and see examples in the documentation](https://rescript-lang.org/docs/gentype/latest/usage).|};
1452+
] );
1453+
( "genType.import",
1454+
[
1455+
{|The @genType decorator may be used to export ReScript values and types to JavaScript, and import JavaScript values and types into ReScript. It allows seamless integration of compiled ReScript modules in existing TypeScript, Flow, or plain JavaScript codebases, without loosing type information across different type systems.
1456+
1457+
[Read more and see examples in the documentation](https://rescript-lang.org/docs/gentype/latest/usage).|};
1458+
] );
1459+
( "genType.opaque",
1460+
[
1461+
{|The @genType decorator may be used to export ReScript values and types to JavaScript, and import JavaScript values and types into ReScript. It allows seamless integration of compiled ReScript modules in existing TypeScript, Flow, or plain JavaScript codebases, without loosing type information across different type systems.
1462+
1463+
[Read more and see examples in the documentation](https://rescript-lang.org/docs/gentype/latest/usage).|};
1464+
] );
14451465
( "get",
14461466
[
14471467
{|The `@get` decorator is used to bind to a property of an object.

0 commit comments

Comments
 (0)