mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
I accidentally broke the detection of the return type in:
```js
var f = function(x: number): boolean {}
```
61 lines
952 B
JSON
61 lines
952 B
JSON
[
|
|
{
|
|
"description": "",
|
|
"tags": [],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 6
|
|
}
|
|
},
|
|
"context": {
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"errors": [],
|
|
"name": "f",
|
|
"kind": "function",
|
|
"params": [
|
|
{
|
|
"title": "param",
|
|
"name": "x",
|
|
"lineNumber": 2,
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "number"
|
|
}
|
|
}
|
|
],
|
|
"returns": [
|
|
{
|
|
"type": {
|
|
"type": "NameExpression",
|
|
"name": "boolean"
|
|
}
|
|
}
|
|
],
|
|
"members": {
|
|
"instance": [],
|
|
"static": []
|
|
},
|
|
"path": [
|
|
{
|
|
"name": "f",
|
|
"kind": "function"
|
|
}
|
|
],
|
|
"namespace": "f"
|
|
}
|
|
] |