Skip to content

Add trailing comma to TypeScript interface definition #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mavci42
Copy link

@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