All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sttp.tapir.Defaults.scala Maven / Gradle / Ivy

There is a newer version: 1.11.9
Show newest version
package sttp.tapir

import scala.scalajs.js
import scala.scalajs.js.JSConverters._
import scala.scalajs.js.typedarray.AB2TA

import org.scalajs.dom.BlobPart
import org.scalajs.dom.File

object Defaults {
  def createTempFile: () => TapirFile = () =>
    new File(
      Iterable(Array.empty[Byte].toTypedArray.asInstanceOf[BlobPart]).toJSIterable,
      "temp.txt"
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy