com.raquo.laminar.api.AirstreamAliases.scala Maven / Gradle / Ivy
The newest version!
package com.raquo.laminar.api
import com.raquo.airstream
trait AirstreamAliases {
// -- Core
type EventStream[+A] = airstream.core.EventStream[A]
type Signal[+A] = airstream.core.Signal[A]
type Observable[+A] = airstream.core.Observable[A]
type Observer[-A] = airstream.core.Observer[A]
type EventSource[+A] = airstream.core.Source.EventSource[A]
type SignalSource[+A] = airstream.core.Source.SignalSource[A]
type Source[+A] = airstream.core.Source[A]
type Sink[-A] = airstream.core.Sink[A]
@inline def EventStream: airstream.core.EventStream.type = airstream.core.EventStream
@inline def Signal: airstream.core.Signal.type = airstream.core.Signal
val Observer: airstream.core.Observer.type = airstream.core.Observer
val AirstreamError: airstream.core.AirstreamError.type = airstream.core.AirstreamError
// -- Event Bus
type EventBus[A] = airstream.eventbus.EventBus[A]
type WriteBus[A] = airstream.eventbus.WriteBus[A]
val EventBus: airstream.eventbus.EventBus.type = airstream.eventbus.EventBus
val WriteBus: airstream.eventbus.WriteBus.type = airstream.eventbus.WriteBus
// -- State
type Val[A] = airstream.state.Val[A]
type Var[A] = airstream.state.Var[A]
type OwnedSignal[+A] = airstream.state.OwnedSignal[A]
type StrictSignal[+A] = airstream.state.StrictSignal[A]
val Val: airstream.state.Val.type = airstream.state.Val
val Var: airstream.state.Var.type = airstream.state.Var
// -- Ownership
type Owner = airstream.ownership.Owner
type Subscription = airstream.ownership.Subscription
type DynamicOwner = airstream.ownership.DynamicOwner
type DynamicSubscription = airstream.ownership.DynamicSubscription
val DynamicSubscription: airstream.ownership.DynamicSubscription.type = airstream.ownership.DynamicSubscription
// -- Special streams
lazy val AjaxStream: airstream.web.AjaxStream.type = airstream.web.AjaxStream
lazy val FetchStream: airstream.web.FetchStream.type = airstream.web.FetchStream
// -- Flatten
type FlattenStrategy[-Outer[+_] <: Observable[_], -Inner[_], Output[+_] <: Observable[_]] = airstream.flatten.FlattenStrategy[Outer, Inner, Output]
lazy val SwitchStreamStrategy: airstream.flatten.FlattenStrategy.SwitchStreamStrategy.type = airstream.flatten.FlattenStrategy.SwitchStreamStrategy
lazy val ConcurrentStreamStrategy: airstream.flatten.FlattenStrategy.ConcurrentStreamStrategy.type = airstream.flatten.FlattenStrategy.ConcurrentStreamStrategy
lazy val SwitchSignalStreamStrategy: airstream.flatten.FlattenStrategy.SwitchSignalStreamStrategy.type = airstream.flatten.FlattenStrategy.SwitchSignalStreamStrategy
lazy val SwitchSignalStrategy: airstream.flatten.FlattenStrategy.SwitchSignalStrategy.type = airstream.flatten.FlattenStrategy.SwitchSignalStrategy
lazy val SwitchSignalObservableStrategy: airstream.flatten.FlattenStrategy.SwitchSignalObservableStrategy.type = airstream.flatten.FlattenStrategy.SwitchSignalObservableStrategy
// -- Status
type Status[+In, +Out] = airstream.status.Status[In, Out]
type Pending[+In] = airstream.status.Pending[In]
@inline def Pending: airstream.status.Pending.type = airstream.status.Pending
type Resolved[+In, +Out] = airstream.status.Resolved[In, Out]
@inline def Resolved: airstream.status.Resolved.type = airstream.status.Resolved
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy