Options
All
  • Public
  • Public/Protected
  • All
Menu

prismic-javascript

Index

Variables

ExperimentCookie

ExperimentCookie: "io.prismic.experiment" = "io.prismic.experiment"

MAX_CONNECTIONS

MAX_CONNECTIONS: number = 20

PreviewCookie

PreviewCookie: "io.prismic.preview" = "io.prismic.preview"

decode

decode: decodeURIComponent = decodeURIComponent

queue

queue: any[] = []

running

running: number = 0

Functions

LRUCache

  • LRUCache(limit: number): void
  • Parameters

    • limit: number

    Returns void

MakeLRUCache

  • A doubly linked list-based Least Recently Used (LRU) cache. Will keep most recently used items while discarding least recently used items when its limit is reached.

    Licensed under MIT. Copyright (c) 2010 Rasmus Andersson http://hunch.se/ Typescript-ified by Oleksandr Nikitin https://tvori.info

    Illustration of the design:

      entry             entry             entry             entry
      ______            ______            ______            ______
     | head |.newer => |      |.newer => |      |.newer => | tail |
     |  A   |          |  B   |          |  C   |          |  D   |
     |______| <= older.|______| <= older.|______| <= older.|______|
    

    removed <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- <-- added

    Parameters

    • limit: any

    Returns ILRUCache

createError

fetchRequest

  • fetchRequest(url: string, onSuccess: function, onError: function): any

getApi

parse

  • parse(str: string, options?: any): ICookie

processQueue

  • processQueue(): void

tryDecode

  • tryDecode(str: string, decode: function): string
  • Parameters

    • str: string
    • decode: function
        • (str: string): string
        • Parameters

          • str: string

          Returns string

    Returns string

Object literals

Predicates

Predicates: object

after

after: DateAfterPredicate = DateAfterPredicate

any

any: AnyPredicate = AnyPredicate

at

at: AtPredicate = AtPredicate

before

before: DateBeforePredicate = DateBeforePredicate

between

between: DateBetweenPredicate = DateBetweenPredicate

dayOfMonth

dayOfMonth: DayOfMonthPredicate = DayOfMonthPredicate

dayOfMonthAfter

dayOfMonthAfter: DayOfMonthAfterPredicate = DayOfMonthAfterPredicate

dayOfMonthBefore

dayOfMonthBefore: DayOfMonthBeforePredicate = DayOfMonthBeforePredicate

dayOfWeek

dayOfWeek: DayOfWeekPredicate = DayOfWeekPredicate

dayOfWeekAfter

dayOfWeekAfter: DayOfWeekAfterPredicate = DayOfWeekAfterPredicate

dayOfWeekBefore

dayOfWeekBefore: DayOfWeekBeforePredicate = DayOfWeekBeforePredicate

fulltext

fulltext: FulltextPredicate = FulltextPredicate

gt

gt: GtPredicate = GtPredicate

has

has: HasPredicate = HasPredicate

hour

hour: HourPredicate = HourPredicate

hourAfter

hourAfter: HourAfterPredicate = HourAfterPredicate

hourBefore

hourBefore: HourBeforePredicate = HourBeforePredicate

in

in: InPredicate = InPredicate

inRange

inRange: InRangePredicate = InRangePredicate

lt

lt: LtPredicate = LtPredicate

missing

missing: MissingPredicate = MissingPredicate

month

month: MonthPredicate = MonthPredicate

monthAfter

monthAfter: MonthAfterPredicate = MonthAfterPredicate

monthBefore

monthBefore: MonthBeforePredicate = MonthBeforePredicate

near

near: NearPredicate = NearPredicate

not

not: NotPredicate = NotPredicate

similar

similar: SimilarPredicate = SimilarPredicate

year

year: YearPredicate = YearPredicate

Generated using TypeDoc