(typedefEntry)
| 347 | |
| 348 | // Check if typedef represents a real object shape |
| 349 | function hasTypedefProperties(typedefEntry) { |
| 350 | if (!Array.isArray(typedefEntry.properties) || typedefEntry.properties.length === 0) { |
| 351 | return false; |
| 352 | } |
| 353 | // Reject self-referential single-property typedefs |
| 354 | if ( |
| 355 | typedefEntry.properties.length === 1 && |
| 356 | typedefEntry.properties[0].name === typedefEntry.name |
| 357 | ) { |
| 358 | return false; |
| 359 | } |
| 360 | return true; |
| 361 | } |
| 362 | |
| 363 | // Convert JSDoc FunctionType into a TypeScript function signature string |
| 364 | function convertFunctionTypeForInterface(typeNode, options) { |
no outgoing calls
no test coverage detected