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

Parameter
TAbi extends Abi | readonly unknown[] | undefined
TEventName extends string | undefined

Source

packages/contract/src/event/EventActionCreator.ts:20


Generated using typedoc-plugin-markdown and TypeDoc