Skip to main content Link Search Menu Expand Document (external link)

ParseError type

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature:

export declare type ParseError = {
    type: 'empty-token';
    start: number;
    end?: never;
} | {
    type: 'bad-escape' | 'bad-local-var' | 'bad-selector' | 'extra-content' | 'key-mismatch' | 'parse-error';
    start: number;
    end: number;
} | {
    type: 'missing-char';
    char: string;
    start: number;
    end?: never;
};