Type Parameters

  • H

  • E

Hierarchy

  • default

Constructors

  • Type Parameters

    • H

    • E

    Parameters

    • host: H

    Returns default<H, E>

Properties

RECORD_MODE: boolean = false

Methods

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns H

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns Promise<any[]>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns Promise<any[]>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns ReturnType<Extract<E[K], AnyFunction<any>>>[]

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns any

  • Type Parameters

    • K extends string | number | symbol

    • D

    Parameters

    • event: K
    • generateDefault: (() => D)
        • (): D
        • Returns D

    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns any

  • Type Parameters

    • K extends string | number | symbol

    • A extends any

    Parameters

    • event: K
    • arg: A
    • Rest ...args: Tail<Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>>

    Returns Extract<ReturnType<Extract<E[K], AnyFunction<any>>> & Head<Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>>, undefined> extends undefined ? undefined extends A ? ReturnType<Extract<E[K], AnyFunction<any>>> : A : ReturnType<Extract<E[K], AnyFunction<any>>>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Rest ...args: Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<E[K], AnyFunction<any>>, AnyFunction<any>>>>, any[]>

    Returns H

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • event: K
    • Optional ignoreClassSubscriptions: true

    Returns (WeakHandler<any, any> | keyof H)[]

  • Parameters

    • Rest ...events: (keyof E)[]

    Returns boolean

  • Type Parameters

    • K extends string | number | symbol | (keyof E)[]

    Parameters

    • events: K
    • handler: keyof H | IterableOr<Handler<H, K extends any[] ? E[K[number]] : E[Extract<K, keyof E>]>>
    • priority: number = 0

    Returns H

  • Type Parameters

    • K extends string | number | symbol | (keyof E)[]

    Parameters

    • events: K
    • handler: keyof H | IterableOr<Handler<H, K extends any[] ? E[K[number]] : E[Extract<K, keyof E>]>>
    • priority: number = 0

    Returns boolean

  • Type Parameters

    • K extends string | number | symbol | (keyof E)[]

    Parameters

    • events: K
    • priority: number = 0

    Returns Promise<Extract<LiterallyJustTheSameThing<Parameters<Extract<Extract<K extends any[] ? E[K[number]] : E[Extract<K, keyof E>], AnyFunction<any>>, AnyFunction<any>>>>, any[]>>

Generated using TypeDoc