EZQMS-461: Better typings for ModeSelector (#4451)

Signed-off-by: Petr Vyazovetskiy <develop.pit@gmail.com>
This commit is contained in:
Pete Anøther 2024-01-25 12:51:17 -03:00 committed by GitHub
parent f94cda3cff
commit 3a22ee1b96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -209,7 +209,7 @@ export function parseURL (text: string): string {
export interface IModeSelector<Mode extends string = string> {
mode: Mode
config: Array<[Mode, IntlString, object]>
onChange: (_mode: string) => void
onChange: (mode: Mode) => void
}
/**