Skip to main content

StaticChaynsApi

Index

Constructors

constructor

Properties

addDataListener

addDataListener: (cb: DataChangeCallback) => () => void

Type declaration

ready

ready: Promise<void>

Methods

getCurrentPage

  • getCurrentPage(): { id: number; siteId: string }
  • Returns { id: number; siteId: string }

    • id: number
    • siteId: string

getCustomFunction

  • getCustomFunction(key: string): <A, O>(...args: A) => Promise<O>
  • Parameters

    • key: string

    Returns <A, O>(...args: A) => Promise<O>

      • <A, O>(...args: A): Promise<O>
      • Type parameters

        • A: any[]
        • O

        Parameters

        • rest...args: A

        Returns Promise<O>

getDevice

getEnvironment

getLanguage

getPages

getParameters

  • getParameters(): {}
  • Returns {}

    • [key string | symbol]: string | string[]

getSite

getStyleSettings

getUser