Skip to content

⬅️ Back to Table of Contents

📄 getCommentLines

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 1

📚 Table of Contents

🛠️ File Location:

📂 packages/rule-schema-to-typescript-types/src/getCommentLines.ts

📦 Imports

Name Source
JSONSchema4 @typescript-eslint/utils/json-schema

Functions

getCommentLines(schema: JSONSchema4): string[]

Parameters:

  • schema JSONSchema4

Returns: string[]

Calls:

  • lines.push
Code
export function getCommentLines(schema: JSONSchema4): string[] {
  const lines: string[] = [];
  if (schema.description) {
    lines.push(schema.description);
  }
  return lines;
}

Generated by Syntax Scribe