Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QsWriter

Hierarchy

  • QsWriter

Implements

Index

Constructors

constructor

  • new QsWriter(qs: QueryString, primitiveWrapper?: string): QsWriter

Properties

Private primitiveWrapper

primitiveWrapper: string

Private qs

qs: QueryString

Private valueWriter

valueWriter: QsValueWriter

Methods

writeAny

  • writeAny(value: number): string

writeBoolean

  • writeBoolean(value: boolean): string

writeBytes

  • writeBytes(value: Uint8Array): string

writeDate

  • writeDate(value: Date): string

writeDocument

  • writeDocument<K>(keys: Iterable<K>, handler: function): string
  • Type parameters

    • K: string

    Parameters

    • keys: Iterable<K>
    • handler: function
        • (key: K, fieldWriter: Writer<any>): any
        • Parameters

          • key: K
          • fieldWriter: Writer<any>

          Returns any

    Returns string

writeFloat64

  • writeFloat64(value: number): string

writeList

  • writeList(size: number, handler: function): string
  • Parameters

    • size: number
    • handler: function
        • (index: number, itemWriter: Writer<any>): any
        • Parameters

          • index: number
          • itemWriter: Writer<any>

          Returns any

    Returns string

writeMap

  • writeMap(size: number, keyHandler: function, valueHandler: function): any
  • Parameters

    • size: number
    • keyHandler: function
        • <KW>(index: number, mapKeyWriter: Writer<KW>): KW
        • Type parameters

          • KW

          Parameters

          • index: number
          • mapKeyWriter: Writer<KW>

          Returns KW

    • valueHandler: function
        • <VW>(index: number, mapValueWriter: Writer<VW>): VW
        • Type parameters

          • VW

          Parameters

          • index: number
          • mapValueWriter: Writer<VW>

          Returns VW

    Returns any

writeNull

  • writeNull(): string

writeString

  • writeString(value: string): string

Generated using TypeDoc