Skip to content

MaybeExtractEventArgsFromAbi

MaybeExtractEventArgsFromAbi<TAbi, TEventName>: TAbi extends Abi | readonly unknown[] ? TEventName extends string ? GetEventArgs<TAbi, TEventName> : undefined : undefined

Adapted from viem. This is a helper type to extract the event args from an abi

Type parameters

TAbi extends Abi | readonly unknown[] | undefined

TEventName extends string | undefined

Source

event/EventActionCreator.ts:18