Hierarchy

Index

Properties

category

category: 0 | 2 | 3 | 1

Diagnostic category: warning = 0, error = 1, suggestion = 2, message = 3

code

code: number

file

file: { fileName: string }

TypeScriptWorker removes all but the fileName property to avoid serializing circular JSON structures.

Type declaration

  • fileName: string

length

length: number

messageText

messageText: string | DiagnosticMessageChain

Optional relatedInformation

relatedInformation: DiagnosticRelatedInformation[]

Optional reportsDeprecated

reportsDeprecated: {}

Type declaration

Optional reportsUnnecessary

reportsUnnecessary: {}

May store more in future. For now, this will simply be true to indicate when a diagnostic is an unused-identifier diagnostic.

Type declaration

Optional source

source: string

start

start: number