interface RunicInspectApi The value at globalThis[Symbol.for("runic.vite.inspect")].
Properties
version
readonly version: 1; No documentation.
active
readonly active: boolean; Whether select mode is on.
Methods
toggle
toggle(on?: boolean): boolean; Turns select mode on or off (the opposite of now without an argument); returns whether it is on. While it is on, the text of generated m.*() calls carries Runic Translations' message markers, so describe can name the messages.
describe
describe(element: Element): Promise<RunicInspectDescription>; The overview of an element, as JSON-safe data.
select
select(element: Element): Promise<RunicInspectDescription>; Shows the overview of an element, as clicking it in select mode does, and returns it.
open
open(location: RunicInspectLocation): Promise<boolean>; Opens a location of an overview in the editor; resolves to whether the server accepted it.
snapshot
snapshot(): Promise<RunicInspectSnapshot>; The page's Views with their states and C# ViewModels, and its recent Bridge calls with their timing and C# handlers, as JSON-safe data. The Runic DevTools extension's panel reads it.