Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/problem-matcher > IProblem

IProblem interface

Represents a problem (generally an error or warning) detected in the console output.

Signature:

export interface IProblem 

Properties

Property

Modifiers

Type

Description

code?

readonly

string

(Optional) Parsed error or warning code from the problem matcher

column?

readonly

number

(Optional) Parsed column number from the problem matcher

endColumn?

readonly

number

(Optional) Parsed ending column number from the problem matcher

endLine?

readonly

number

(Optional) Parsed ending line number from the problem matcher

file?

readonly

string

(Optional) Parsed file path from the problem matcher

line?

readonly

number

(Optional) Parsed line number from the problem matcher

matcherName

readonly

string

The name of the matcher that detected the problem.

message

readonly

string

Parsed message from the problem matcher

severity?

readonly

ProblemSeverity

(Optional) Parsed severity level from the problem matcher