Interface: ToJsonType<T>

json.ToJsonType

Extra option for providing a type hint to the toJson function

Type parameters

Name
T

Table of contents

Properties

Properties

type

type: T

Type to use for the node

Possible values are:

  • object: The node must be a valid object, and nodes that are ambiguous and could be objects or something else are assumed to be an object
  • array: The node must be a valid array, and nodes that are ambiguous and could be arrays or something else are assumed to be an array

Defined in

src/json.d.ts:79