Type alias GLXElectronAPI

GLXElectronAPI: {
    coreFunctions: ICoreFunctions;
    windowFunctions: IWindowFunctions;
    invoke<Y, X>(channel, ...args) => Promise<Y>;
    on<E, X>(channel, listener) => void;
    once<E, X>(channel, listener) => void;
    removeAllListener(channel) => void;
    removeListener<X>(channel, listener) => void;
    send<X>(channel, ...args) => void;
    sendSync<Y, X>(channel, ...args) => Y;
}

Type declaration

  • coreFunctions: ICoreFunctions
  • windowFunctions: IWindowFunctions
  • invoke:function
    • Type Parameters

      • Y = any

      • X = any

      Parameters

      • channel: string
      • Rest ...args: X[]

      Returns Promise<Y>

  • on:function
    • Type Parameters

      • E = Event

      • X = any

      Parameters

      • channel: string
      • listener: ((event, ...args) => void)
          • (event, ...args): void
          • Parameters

            • event: E
            • Rest ...args: X[]

            Returns void

      Returns void

  • once:function
    • Type Parameters

      • E = Event

      • X = any

      Parameters

      • channel: string
      • listener: ((event, ...args) => void)
          • (event, ...args): void
          • Parameters

            • event: E
            • Rest ...args: X[]

            Returns void

      Returns void

  • removeAllListener:function
  • removeListener:function
    • Type Parameters

      • X = any

      Parameters

      • channel: string
      • listener: ((...args) => void)
          • (...args): void
          • Parameters

            • Rest ...args: X[]

            Returns void

      Returns void

  • send:function
    • Type Parameters

      • X = any

      Parameters

      • channel: string
      • Rest ...args: X[]

      Returns void

  • sendSync:function
    • Type Parameters

      • Y = any

      • X = any

      Parameters

      • channel: string
      • Rest ...args: X[]

      Returns Y

Generated using TypeDoc