aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/rescript/basic.res
blob: c5138a7b376e776a5bda2cc09f0c5753e61f7c68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'