(declaration: ts.VariableDeclaration)
| 321 | } |
| 322 | |
| 323 | function serializeVariableDeclaration(declaration: ts.VariableDeclaration): VariableDefinition { |
| 324 | if (!declaration.type) { |
| 325 | return |
| 326 | } |
| 327 | return { |
| 328 | name: (declaration.name as ts.Identifier).text, |
| 329 | documentation: '', |
| 330 | type: serializeTypeExpression(declaration.type), |
| 331 | deprecated: false, |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | generateDocumentation(['./scripts/dummy.ts'], { |
no test coverage detected