• Creates just an event that is typed and easy to use.

    Parameters

    • type: string

    Returns JustEventEmpty<typeof type>

  • Creates just an event that is typed and easy to use.

    Parameters

    • type: string
    • defaultListener: ((value: void) => unknown)
        • (value: void): unknown
        • Parameters

          • value: void

          Returns unknown

    Returns JustEventEmpty<typeof type> & {
        defaultListener: (() => unknown);
    }

  • Creates just an event that is typed and easy to use.

    Type Parameters

    • Value

    Parameters

    • type: string
    • defaultListener: ((value: Value) => unknown)
        • (value: Value): unknown
        • Parameters

          • value: Value

          Returns unknown

    Returns JustEventUno<typeof type, Value> & {
        defaultListener: ((value: Value) => unknown);
    }

  • Creates just an event that is typed and easy to use.

    Type Parameters

    • Value

    Parameters

    • type: string

    Returns JustEventUno<typeof type, Value>

  • Creates just an event that is typed and easy to use.

    Type Parameters

    • Value

    • Meta extends JustMeta

    Parameters

    • type: string

    Returns JustEventDuo<typeof type, Value, Meta>

  • Creates just an event that is typed and easy to use.

    Type Parameters

    • Value

    • Meta extends JustMeta

    Parameters

    • type: string
    • defaultListener: ((value: Value, meta: Meta) => unknown)
        • (value: Value, meta: Meta): unknown
        • Parameters

          • value: Value
          • meta: Meta

          Returns unknown

    Returns JustEventDuo<typeof type, Value, Meta> & {
        defaultListener: ((value: Value, meta: Meta) => unknown);
    }

Generated using TypeDoc