Skip to content

Add trailing comma to TypeScript interface definition#139

Open
mavci42 wants to merge 1 commit intoinvariant-labs:mainfrom
mavci42:main
Open

Add trailing comma to TypeScript interface definition#139
mavci42 wants to merge 1 commit intoinvariant-labs:mainfrom
mavci42:main

Conversation

@mavci42
Copy link
Copy Markdown

@mavci42 mavci42 commented Mar 10, 2025

This PR adds missing trailing commas to the TypeScript interface definition in the documentation. Adding trailing commas is considered a best practice in TypeScript for several reasons:

  1. Consistency: Maintains a consistent code style throughout the codebase.
  2. Cleaner diffs: When new properties are added in the future, git diffs will only show the new line, not modifications to existing lines.
  3. Error prevention: Helps prevent errors when converting between different formats (like TS to JSON).
  4. Maintainability: Makes code easier to refactor and modify in the future.

Improves code consistency and maintainability by following TS best practices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant