We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 743b657 commit feb529eCopy full SHA for feb529e
1 file changed
lib/reactotron-core-client/src/reactotron-core-client.ts
@@ -141,10 +141,14 @@ export interface CustomCommandArg {
141
type: ArgType
142
}
143
144
+interface ArgTypeMap {
145
+ [ArgType.String]: string
146
+}
147
+
148
export type CustomCommandArgs<Args extends CustomCommandArg[]> = UnionToIntersection<
149
Args extends Array<infer U>
150
? U extends CustomCommandArg
- ? { [K in U as U["name"]]: U["type"] }
151
+ ? { [K in U as U["name"]]: ArgTypeMap[U["type"]] }
152
: never
153
154
>
0 commit comments