chore(client/ts): port type_widget

This commit is contained in:
Elian Doran
2025-01-14 19:12:29 +02:00
parent 353156e625
commit e16f4a1a71
3 changed files with 16 additions and 15 deletions

View File

@@ -282,7 +282,7 @@ type CommandAndEventMappings = CommandMappings & EventMappings;
* This type is a discriminated union which contains all the possible commands that can be triggered via {@link AppContext.triggerCommand}.
*/
export type CommandNames = keyof CommandMappings;
type EventNames = keyof EventMappings;
export type EventNames = keyof EventMappings;
type FilterByValueType<T, ValueType> = { [K in keyof T]: T[K] extends ValueType ? K : never }[keyof T];