Skip to content

Commit

Permalink
learned a new type trick (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 authored Jan 15, 2024
1 parent 0c5d12a commit c2ba70e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/core/src/config/utilityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,4 @@ export type SafeEventNames<
abi extends Abi,
///
abiEvents extends AbiEvent = ExtractAbiEvents<abi>,
signatures extends string = FormatAbiItem<abiEvents>,
> = string extends signatures
? string
: {
[i in signatures]: ParseAbiItem<i> extends AbiEvent
? FormatAbiEvent<abi, ParseAbiItem<i>>
: never;
}[signatures];
> = abiEvents extends abiEvents ? FormatAbiEvent<abi, abiEvents> : never;

0 comments on commit c2ba70e

Please sign in to comment.