This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
decorators
is missing in TSInterfaceDeclaration #478
Closed
Description
Context: prettier/prettier#4552
What version of TypeScript are you using?
2.9.0-rc
What version of typescript-eslint-parser
are you using?
2960b00 (typescript-eslint-parser#ts-2.9)
What code were you trying to parse?
@decorator()
interface X {}
What did you expect to happen?
{
"type": "TSInterfaceDeclaration",
"abstract": false,
"body": {
"type": "TSInterfaceBody",
"body": []
},
"decorators": [
{
"type": "Decorator",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "decorator"
},
"arguments": []
}
}
],
"id": {
"type": "Identifier",
"name": "X"
},
"heritage": []
}
What happened?
{
"type": "TSInterfaceDeclaration",
"abstract": false,
"body": {
"type": "TSInterfaceBody",
"body": []
},
- "decorators": [
- {
- "type": "Decorator",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "Identifier",
- "name": "decorator"
- },
- "arguments": []
- }
- }
- ],
"id": {
"type": "Identifier",
"name": "X"
},
"heritage": []
}