mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Adds an optional `comments` field to the `Program`, which will be present
if the AST is created with Esprima using the `{ comments: true }` option.
Adds an optional `innerComments` field to `BlockStatement` which will be
present if the AST is created with Esprima using the `{ attachComments: true }`
option, given the following code:
```.js
function foo(n) {
// comments in an empty block are `innerComments`
}
```
Note that though these fields are not specified in the ESTree specification
they extend the support already present in this set of types for
`trailingComments` and `leadingComments`, which are also unspecified.
|
||
|---|---|---|
| .. | ||
| estree-tests.ts | ||
| flow.d.ts | ||
| index.d.ts | ||
| tsconfig.json | ||
| UNUSED_FILES.txt | ||