Skip to main content Link Search Menu Expand Document (external link)

CoreServices overview

CoreServices are the services that are available to all Typed applications.

Added in v1.0.0


Table of contents


utils

CoreDomServices (type alias)

Signature

export type CoreDomServices = DomServices | CoreServices

Added in v1.0.0

CoreServices (type alias)

CoreServices are the services that are available to all Typed applications.

Signature

export type CoreServices =
  | CurrentEnvironment
  | GetRandomValues
  | Navigation.Navigation
  | CurrentRoute
  | RenderContext.RenderContext
  | RenderQueue.RenderQueue
  | RenderTemplate

Added in v1.0.0

fromWindow

Signature

export declare function fromWindow(
  window: Window & GlobalThis,
  options?: DomServicesElementParams & { readonly queue?: "raf" | "sync" | "mixed" | ["idle", IdleRequestOptions] }
): Layer.Layer<CoreDomServices>

Added in v1.0.0

server

Signature

export declare const server: Layer.Layer<
  | CurrentEnvironment
  | CurrentRoute
  | GetRandomValues
  | RenderContext.RenderContext
  | RenderQueue.RenderQueue
  | RenderTemplate,
  never,
  never
>

Added in v1.0.0

static

Signature

export declare const static: Layer.Layer<
  | CurrentEnvironment
  | CurrentRoute
  | GetRandomValues
  | RenderContext.RenderContext
  | RenderQueue.RenderQueue
  | RenderTemplate,
  never,
  never
>

Added in v1.0.0