Skip to content

@sqlrooms/app-runtime / createRuntimeDiagnostic

Function: createRuntimeDiagnostic()

createRuntimeDiagnostic(diagnostic): object

Parameters

ParameterType
diagnostic{ level: "error" | "warn" | "info"; source: "query" | "runtime" | "promise" | "console" | "resource" | "capability" | "render" | "webcontainer"; message: string; file?: string; line?: number; column?: number; stack?: string; detail?: unknown; timestamp?: number; }
diagnostic.level"error" | "warn" | "info"
diagnostic.source"query" | "runtime" | "promise" | "console" | "resource" | "capability" | "render" | "webcontainer"
diagnostic.messagestring
diagnostic.file?string
diagnostic.line?number
diagnostic.column?number
diagnostic.stack?string
diagnostic.detail?unknown
diagnostic.timestamp?number

Returns

object

NameTypeDefault value
type"sqlrooms.app-runtime.message"-
version1-
direction"diagnostic"-
diagnostic{ level: "error" | "warn" | "info"; source: "query" | "runtime" | "promise" | "console" | "resource" | "capability" | "render" | "webcontainer"; message: string; file?: string; line?: number; column?: number; stack?: string; detail?: unknown; timestamp?: number; }AppDiagnostic