Module
PsSpa.Runtime
- Package
- purescript-ps-spa
- Repository
- the-man-with-a-golden-mind/ps-spa
#AppConfig Source
type AppConfig :: Type -> Type -> Type -> Type -> (Type -> Type) -> Typetype AppConfig shared route request command subscription = { initialShared :: shared, loadPage :: shared -> request -> LoadResult shared route command subscription, onCommand :: command -> Effect Unit, onSubscription :: forall msg. (msg -> Effect Unit) -> subscription msg -> Effect Cleanup, parseRequest :: String -> request, rootId :: String, sharedSubscriptions :: request -> shared -> Array (subscription Void), toPath :: route -> String }