Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InternalOptions

The interface of the options internally used by the function encode

Hierarchy

  • InternalOptions

Index

Properties

addQuestionMark

addQuestionMark: boolean

If '?' will be added to the begin of the result, in case the result is not empty. Default value: true

dateParser

dateParser: (value: Date) => string

The function used to parse the dates. Default value: value => value.toISOString()

Type declaration

    • (value: Date): string
    • Parameters

      • value: Date

      Returns string

flagNestedParents

flagNestedParents: boolean

If, in case there is a nested object, a parameter with value true for each path to the parents will be added. Default value: true

preserveNull

preserveNull: boolean

If all the null values will be kept and parsed as 'null'. Default value: true

preserveUndefined

preserveUndefined: boolean

If all the undefined values will be kept and parsed as 'undefined'. Default value: false

shortBoolean

shortBoolean: boolean

If a value is of boolean type, it will be just declared if true while omitted if false. (e.g. &val) Default value: false

Generated using TypeDoc