mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
* Add support for interface declarations * Support exported interfaces/type aliases * Update test fixtures * Add interface type, fix test * Fix comment style and typo
132 lines
2.4 KiB
JSON
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"
|
|
}
|
|
] |