Posts JSON data to URL

  • Type Parameters

    • T

    Parameters

    • url: string

      URL to post to

    • data: T

      Data to send

    • opts: FetchOpts = {}

      Additional fetch options

    Returns Promise<any>

    Promise of parsed JSON response