Interface PalletEvent<Pallet, EventName, Data>

interface PalletEvent<Pallet, EventName, Data> {
    pallet: Pallet;
    palletEvent: Data extends undefined
        ? EventName
        : Data extends null
            ? {
                name: EventName;
            }
            : {
                data: Data;
                name: EventName;
            };
}

Type Parameters

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

Properties

Properties

pallet: Pallet
palletEvent: Data extends undefined
    ? EventName
    : Data extends null
        ? {
            name: EventName;
        }
        : {
            data: Data;
            name: EventName;
        }