RouteCommon

japgolly.scalajs.react.extra.router.StaticDsl$.RouteCommon
trait RouteCommon[R <: ([X] =>> RouteCommon[R, X]), A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Route[A]
class RouteB[A]

Members list

Value members

Abstract methods

def parseThen(f: Option[A] => Option[A]): R[A]
def pmap[B](b: A => Option[B])(a: B => A): R[B]

Prism map.

Prism map.

Some values of A can be turned into a Bs, some fail (in which case the route is considered non-matching).

All Bs can be turned back into As.

Attributes

Concrete methods

final def const[B](b: B)(implicit ev: ValueOf[A]): R[B]
final def filter(f: A => Boolean): R[A]
final def mapInput[B >: A](f: B => A): R[B]
final def mapParsed[B <: A](f: A => B): R[B]
final def xmap[B](b: A => B)(a: B => A): R[B]

Exponential map.

Exponential map.

Any A can be turned into a B and vice versa.

Attributes