Skip to content

refactor: add Seconds and Gain Type aliases, replace enum with const,… - #58

Merged
mallae-rpi merged 4 commits into
mainfrom
refactor/57-semantic-number-type-aliases
Mar 13, 2026
Merged

mallae-rpi merged 4 commits into
mainfrom
refactor/57-semantic-number-type-aliases

Conversation

@rafizamankhan

@rafizamankhan rafizamankhan commented Mar 4, 2026 •

Copy link
Copy Markdown
Collaborator

… add new script for all checks in one script ref#57

Changes:

  • add Seconds and Gain Type aliases
  • replace enum with const following -erasableSyntax
  • added script check and fix to combine line, format and build checks

Resolves #57

… add new script for all checks in one script ref#57
Comment thread src/components/NowPlaying.tsx
Comment thread types/Fade.ts

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea what typescript fuckery is going on here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how we have ID determining string instead of just using string, here seconds and gain adds context instead of using plain number types to avoid mismatches.

@mallae-rpi mallae-rpi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mallae-rpi
mallae-rpi merged commit 8772aa9 into main Mar 13, 2026
@rafizamankhan
rafizamankhan deleted the refactor/57-semantic-number-type-aliases branch April 3, 2026 19:27
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.

Refactor: Add semantic type aliases for number fields in type definitions

3 participants