Interface ParseOptions

Options for parse.

interface ParseOptions {
    allowDuplicateKeys?: boolean;
    schema?: SchemaType;
    onWarning?(error: Error): void;
}

Properties

allowDuplicateKeys?: boolean

If true, duplicate keys will overwrite previous values. Otherwise, duplicate keys will throw a SyntaxError.

{false}
schema?: SchemaType

Name of the schema to use.

{"default"}

Methods

  • If defined, a function to call on warning messages taking an Error as its only argument.

    Parameters

    • error: Error

    Returns void