Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = unknown

Hierarchy

  • default

Implements

Index

Constructors

Properties

key: null | string = null

Property key of the active assembling value

reviver?: JSONCb

Function to transform a value after assembling. Its API is identical to the reviver from JSON.parse.

param key
param value
stack: unknown[] = []

Stack of nested assembled items and keys contained within the active assembling value

startArray: AnyFunction<any[], any> = ...

Handler to process an array start

startObject: AnyFunction<any[], any> = ...

Handler to process an object start

value: unknown = NULL

A value of the active assembled item. If it is a container (object or array), all new assembled values will be added to it.

Accessors

  • get depth(): number
  • get isValueAssembled(): boolean
  • set isValueAssembled(value: boolean): void

Methods

  • createStartObjectHandler(Constr: ObjectConstructor | ArrayConstructor): AnyFunction<any[], any>
  • endArray(): void
  • endObject(): void
  • endPrimitive(): void
  • falseValue(): void
  • keyValue(value: string): void
  • nullValue(): void
  • numberValue(value: string): void
  • processToken(chunk: Token): Generator<T, any, unknown>
  • saveValue(value: unknown): void
  • stringValue(value: string): void
  • trueValue(): void