Skip to content

Conversation

Simon-Laux
Copy link
Contributor

@Simon-Laux Simon-Laux commented Oct 8, 2025

trying the breaking change.
Actually it will be not as breaking if you used the constants, because this pr will also change the constants.

closes #7029

Note that I had to change the constants from enum to namespace, this has the side effect, that you can no longer also use the constants as types, you need to instead prefix them with typeof now.

enum/union. Affected places: `FullChat.chat_type`,
`BasicChat.chat_type`,
`ChatListItemFetchResult::ChatListItem.chat_type`, `Event::
SecurejoinInviterProgress.chat_type` and `MessageSearchResult.chat_type`
@Simon-Laux Simon-Laux self-assigned this Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stronger TypeScript types of number (C-like) enums (e.g. chat_type)
1 participant