Type Alias: AbiEventParametersToPrimitiveTypes<abiParameters, options>
type AbiEventParametersToPrimitiveTypes<abiParameters, options>: abiParameters extends readonly [] ? readonly [] : Filter<abiParameters, options["IndexedOnly"] extends true ? object : object> extends infer Filtered ? HasUnnamedAbiParameter<Filtered> extends true ? readonly [...{ [K in keyof Filtered]: AbiEventParameterToPrimitiveType<Filtered[K], options> }] | options["Required"] extends true ? never : Filtered extends readonly [...(infer Head extends (...)), infer param] ? AbiEventParametersToPrimitiveTypes<readonly [...(...)], options> : never : { [Parameter in Filtered[number] as Parameter extends Object ? Name : never]?: AbiEventParameterToPrimitiveType<Parameter, options> } extends infer Mapped ? Prettify<MaybeRequired<Mapped, options["Required"] extends boolean ? options["Required"] : false>> : never : never;
Type Parameters
Type Parameter | Default type |
---|---|
| ‐ |
|
|
Defined
@nilfoundation/niljs/src/contract-factory/ContractFactory.ts:351