hetzner-ts
    Preparing search index...

    Class BaseAPI

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • token: string
      • OptionalbaseUrl: string

      Returns BaseAPI

    Properties

    baseUrl: string
    token: string

    Methods

    • Type Parameters

      • T

      Parameters

      • endpoint: string
      • options: RequestInit = {}

      Returns Promise<{ response: T; success: true } | { response: APIError; success: false }>