Type alias EventBuilder<S, T>

EventBuilder<S, T>: T extends undefined
    ? {
        message: S;
    }
    : {
        data: T;
        message: S;
    }

Events

Type Parameters

  • S extends string
  • T = undefined