feat: add rescript parser and queries (#6671)

This commit is contained in:
Riley Bruins 2024-07-27 08:34:30 -07:00 committed by GitHub
parent 7cec6219c4
commit f97e0de005
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 748 additions and 0 deletions

View file

@ -0,0 +1,23 @@
@genType
type person = {
name: string,
age: int,
}
@genType
type renderMe<'a> = React.component<{
"randomString": string,
"poly": 'a,
}>
@genType.import("./hookExample") @react.component
external make: (
~person: person,
~children: React.element,
~renderMe: renderMe<'a>,
) => React.element = "makeRenamed"
@genType.import("./hookExample")
external foo: (~person: person) => string = "foo"
let hi = 'a'