Type Alias ContractEvent<EventName, Data>

ContractEvent<EventName, Data>: Data extends undefined
    ? {
        name: EventName;
    }
    : {
        data: Data;
        name: EventName;
    }

Type Parameters

  • EventName extends string = string
  • Data extends any = any