nvim-treesitter/tests/indent/rescript/basic.res

24 lines
421 B
Text
Raw Permalink Normal View History

@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'