documentation/test/fixture/interface.output.json
Tom MacWright e2915dc19c feat(core): Support Flow interface declarations
* Add support for interface declarations

* Support exported interfaces/type aliases

* Update test fixtures

* Add interface type, fix test

* Fix comment style and typo
2017-04-10 13:14:04 -04:00

132 lines
2.4 KiB
JSON

[
{
"description": {
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "This is my interface.",
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 22,
"offset": 21
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 22,
"offset": 21
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 22,
"offset": 21
}
}
},
"tags": [],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
}
},
"augments": [
{
"title": "extends",
"name": "Bar"
},
{
"title": "extends",
"name": "Baz"
}
],
"errors": [],
"examples": [],
"params": [],
"properties": [
{
"title": "property",
"name": "prop1",
"lineNumber": 5,
"type": {
"type": "NameExpression",
"name": "number"
}
},
{
"title": "property",
"name": "prop2",
"lineNumber": 6,
"type": {
"type": "NameExpression",
"name": "string"
}
}
],
"returns": [],
"sees": [],
"throws": [],
"todos": [],
"name": "Foo",
"kind": "interface",
"members": {
"global": [],
"inner": [],
"instance": [],
"events": [],
"static": []
},
"path": [
{
"name": "Foo",
"kind": "interface"
}
],
"namespace": "Foo"
}
]