mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
24 lines
421 B
Text
24 lines
421 B
Text
|
|
@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'
|