@wailsio/runtime
    Preparing search index...

    Function Emit

    • Emits an event.

      Type Parameters

      • E extends string & {} = string & {}

      Parameters

      • name: E

        The name of the event to emit

      • data: WailsEventData<E>

        The data that will be sent with the event

      Returns Promise<boolean>

      A promise that will be fulfilled once the event has been emitted. Resolves to true if the event was cancelled.

    • Emits an event.

      Type Parameters

      • E extends string & {} = string & {}

      Parameters

      • name: WailsEventData<E> extends void | null ? E : never

        The name of the event to emit

      Returns Promise<boolean>

      A promise that will be fulfilled once the event has been emitted. Resolves to true if the event was cancelled.