Hierarchy

  • Latite

Properties

version: string

The Latite Client version. Example: "v2.0.0"

Methods

  • Listens to a client-side event.

    Type Parameters

    Parameters

    • eventName: K

      The event to listen to

    • listener: ((event) => void)

      The event callback

        • (event): void
        • Parameters

          Returns void

    • Optional priority: number

      Positive or negative integer. The priority in which the event listener should have over other events globally. The default is 0. Greater = called first, less = called later.

    Returns void

  • Runs a Latite command.

    Parameters

    • cmd: string

      The command to run. Do not add the prefix (.)

    Returns boolean

    The success of the command.

  • Shows a Latite toast on the top of the screen.

    Parameters

    • notif: string

      The notification to show.

    Returns void

Generated using TypeDoc