Interface FormatJSONOptions

Hierarchy

  • FormatJSONOptions

Properties

entries?: ((data) => FormatJSONEntry<any>[])

Type declaration

    • (data): FormatJSONEntry<any>[]
    • Extract entries from an object, Object.entries with sorted keys by default.

      Parameters

      • data: any

      Returns FormatJSONEntry<any>[]

indent: number

0 for compact display, otherwise number of spaces for each indent

onData?: ((data) => void)

Type declaration

quote: "'" | "\""

Preferred quote character, ' by default.

quoteAsNeeded: boolean

Whether to omit quotes if possible.

template: boolean

Whether to quote multiline strings as template literals.

trailing: boolean

Whether to add trailing commas.

Generated using TypeDoc