← All types
Ob Object

EdgeAppSourceDiagnostic

A single type-check diagnostic on a edgeApp script

Fields

Which kind of script this diagnostic refers to

Possible values (3)
HANDLER

A handler script (entry under handlers[])

LIBRARY

A reusable library script (entry under libraries[])

ON_MESSAGE

The onMessage entry script (local.edgeApp.invoke target)

Handler name, library name, or 'onMessage' depending on scriptKind

line

Int!Non-null

1-based line number in the script source

column

Int!Non-null

1-based column number

ERROR or WARNING

Possible values (2)
ERROR

Type error — script is not type-safe

WARNING

Lint warning — non-fatal

message

String!Non-null

Diagnostic message from the Lua type checker

code

StringNullable

Checker error code, when available

Referenced by (1)
Exact type SDL
"""A single type-check diagnostic on a edgeApp script"""
type EdgeAppSourceDiagnostic {
  """Which kind of script this diagnostic refers to"""
  scriptKind: EdgeAppSourceScriptKind!
  """Handler name, library name, or 'onMessage' depending on scriptKind"""
  scriptName: String!
  """1-based line number in the script source"""
  line: Int!
  """1-based column number"""
  column: Int!
  """ERROR or WARNING"""
  severity: EdgeAppSourceDiagnosticSeverity!
  """Diagnostic message from the Lua type checker"""
  message: String!
  """Checker error code, when available"""
  code: String
}