⬅️ Back to Table of Contents
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
1 |
📦 Imports |
1 |
📊 Variables & Constants |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/rule-schema-to-typescript-types/src/getCommentLines.ts
📦 Imports
Name |
Source |
JSONSchema4 |
@typescript-eslint/utils/json-schema |
Variables & Constants
Name |
Type |
Kind |
Value |
Exported |
lines |
string[] |
const |
[] |
✗ |
Functions
Code
export function getCommentLines(schema: JSONSchema4): string[] {
const lines: string[] = [];
if (schema.description) {
lines.push(schema.description);
}
return lines;
}
- Parameters:
schema: JSONSchema4
- Return Type:
string[]
- Calls:
lines.push