Closed
Description
If a module has shadowed bindings
let foo = (a: int, b: string) => ()
let foo = () => foo(1, "")
the output of rescript-tools doc
will include the shadowed binding
{
"name": "Foo",
"docstrings": [],
"source": {
"filepath": "js/Foo.res",
"line": 1,
"col": 1
},
"items": [
{
"id": "Foo.foo",
"kind": "value",
"name": "foo",
"signature": "let foo: (int, string) => unit",
"docstrings": [],
"source": {
"filepath": "js/Foo.res",
"line": 1,
"col": 5
},
"detail":
{
"kind": "signature",
"details": {
"parameters": [{
"path": "int"
}, {
"path": "string"
}],
"returnType": {
"path": "unit"
}
}
}
},
{
"id": "Foo.foo",
"kind": "value",
"name": "foo",
"signature": "let foo: unit => unit",
"docstrings": [],
"source": {
"filepath": "js/Foo.res",
"line": 3,
"col": 5
},
"detail":
{
"kind": "signature",
"details": {
"parameters": [{
"path": "unit"
}],
"returnType": {
"path": "unit"
}
}
}
}]
}
Metadata
Metadata
Assignees
Labels
No labels