Type Alias SyntaxErrorCause

SyntaxErrorCause: {
    actual: unknown;
    expect: string | Primitive[];
    kind: Kind;
    node: object;
    path: Path;
    prop: string;
}

The cause of a syntax error which is always a node property.

Type declaration

  • actual: unknown

    The actual value of the property.

  • expect: string | Primitive[]

    The expected value of the property. Either a string description or an enumeration of possible values.

  • kind: Kind

    The kind of the input node.

  • node: object

    The node whose property caused the syntax error.

  • path: Path

    The path to the input node.

  • prop: string

    The name of the property that caused the syntax error.