We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cae13a8 + f3fada0 commit 2836424Copy full SHA for 2836424
src/advanced/abi-mapper.ts
@@ -54,6 +54,7 @@ export type MapTuple<T> =
54
// prettier-ignore
55
export type MapType<T extends BaseComponent> =
56
T extends Tuple<Array<Component<string>>> ? MapTuple<T['components']> :
57
+ T extends { readonly type: 'tuple[]'; readonly components: infer C extends Array<Component<string>> } ? MapTuple<C>[] :
58
T extends Component<infer Type> ? GetType<Type> :
59
unknown; // default
60
export type UnmapType<T> = T extends MapType<infer U> ? U : never;
0 commit comments