Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for json, qs and bson writers.

Hierarchy

Implements

Index

Methods

writeAny

  • writeAny(value: any): any

Abstract writeBoolean

  • writeBoolean(value: boolean): any

Abstract writeBytes

  • writeBytes(value: Uint8Array): any

Abstract writeDate

  • writeDate(value: Date): any

writeDocument

  • writeDocument<K>(keys: Iterable<K>, handler: function): Record<K, any>
  • 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 Record<K, any>

Abstract writeFloat64

  • writeFloat64(value: number): any

writeList

  • writeList(size: number, handler: function): any[]
  • Parameters

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

          • index: number
          • itemWriter: Writer<any>

          Returns any

    Returns any[]

Abstract 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

Abstract writeNull

  • writeNull(): any

Abstract writeString

  • writeString(value: string): any

Generated using TypeDoc