Arabic Maqām Network - TypeScript Library Documentation - v0.1.0
    Preparing search index...

    Function updateAjnas

    • Updates the ajnas data by sending a PUT request to the API.

      This function takes an array of JinsData objects, sorts them by ID, and sends them to the backend API for persistent storage. It converts JinsData instances to the appropriate JSON format for database storage.

      Parameters

      • newAjnas: default[]

        Array of JinsData objects to update

      Returns Promise<void>

      Error if the API request fails or returns a non-OK status