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

com.lambdaminute.slinkywrappers.reactrouter.RouteProps.scala Maven / Gradle / Ivy

The newest version!
package com.lambdaminute.slinkywrappers.reactrouter

import scala.scalajs.js
import scala.scalajs.js.{UndefOr, |}

case class Match(params: js.Object, isExact: Boolean, path: String, url: String)
case class Location(key: UndefOr[String], pathname: UndefOr[String], search: UndefOr[String], hash: UndefOr[String])
case class History(length: Int,
                   action: String,
                   location: Location,
                   push: js.Function1[String,Unit] | js.Function2[String,js.Object,Unit],
                   replace:  js.Function1[String,Unit] | js.Function2[String,js.Object,Unit],
                   go: js.Function1[Int,Unit],
                   goBack: js.Function,
                   goForward: js.Function,
                   block: js.Function)
case class RouteProps(`match`:Match, location: Location, history: History)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy