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

com.raquo.laminar.api.package.scala Maven / Gradle / Ivy

The newest version!
package com.raquo.laminar

import scala.annotation.implicitNotFound

package object api extends Implicits {

  lazy val A: AirstreamAliases = new AirstreamAliases {}

  val L: Laminar = new Laminar {}

  // --

  @implicitNotFound(
    "You must `import com.raquo.laminar.api.features.unitArrows` to allow expressions of type `Unit` " +
      "on the right hand side of `-->` methods, because this is not completely safe in Scala 3. " +
      "Please read the documentation first to learn about the caveats: https://laminar.dev/documentation#-unit-sinks"
  )
  trait UnitArrowsFeature

  object features {

    implicit lazy val unitArrows: UnitArrowsFeature = new UnitArrowsFeature {}
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy