@har-sdk/core
Version:
The base package can be used to import specification files (i.e. HAR, OAS and Postman Collection) and detect their type.
8 lines (7 loc) • 401 B
TypeScript
import { BaseSyntaxErrorDetailsExtractor } from './BaseSyntaxErrorDetailsExtractor';
export declare class JsonSyntaxErrorDetailsExtractor extends BaseSyntaxErrorDetailsExtractor<SyntaxError> {
private readonly LOCATION_PATTERNS;
protected extractOffset(error: SyntaxError): number | undefined;
protected extractMessage(error: SyntaxError): string;
private extractByLocationPatterns;
}