UNPKG

@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.

13 lines (12 loc) 654 B
import { SyntaxErrorDetails } from './SyntaxErrorDetails'; import { SyntaxErrorDetailsExtractor } from './SyntaxErrorDetailsExtractor'; export declare abstract class BaseSyntaxErrorDetailsExtractor<T extends Error> implements SyntaxErrorDetailsExtractor { private source; private _lineOffsets; get lineOffsets(): number[]; protected abstract extractOffset(error: T): number | undefined; extract(error: T, source: string): SyntaxErrorDetails; protected extractSnippet(_error: T): string | undefined; protected extractMessage(error: T): string; protected calculateOffset(lineNumber: number, columnNumber: number): number; }