Nyora (JavaScript) - v2.0.3
    Preparing search index...

    Class CloudClient

    Thin fetch client for the Nyora cloud helper REST contract.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    baseUrl: string

    Methods

    • GET a helper endpoint and decode the JSON body.

      Type Parameters

      Parameters

      • path: string
      • params: Record<string, string | number> = {}

      Returns Promise<T>

    • Ask the helper to install (load) a parser source. Best-effort.

      Parameters

      • id: string

      Returns Promise<void>

    • GET a source endpoint; if it fails because the source isn't loaded on the helper yet, install it and retry once.

      Type Parameters

      Parameters

      • path: string
      • id: string
      • params: Record<string, string | number> = {}

      Returns Promise<T>