node_modules/@apexdevtools/apex-parser/lib/ThrowingErrorListener.d.ts:9:5 - error TS2416: Property 'syntaxError' in type 'ThrowingErrorListener' is not assignable to the same property in base type 'ANTLRErrorListener<Token>'.
Type '(recognizer: Recognizer<Token, any>, offendingSymbol: Token, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined) => any' is not assignable to type '<T extends Token>(recognizer: Recognizer<T, any>, offendingSymbol: T | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined) => void'.
Types of parameters 'offendingSymbol' and 'offendingSymbol' are incompatible.
Type 'T | undefined' is not assignable to type 'Token'.
Type 'undefined' is not assignable to type 'Token'.
9 syntaxError(recognizer: Recognizer<Token, any>, offendingSymbol: Token, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): any;