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 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;
};