ConsoleSite
Interface in Console
One console call the WGSL records: its method, where it was written, its arguments in the order written, and the words its entry takes.
import type { ConsoleSite } from 'typeshade'
The signature, the description and the examples come from the compiler's own source at commit 26de7be8.
Syntax
interface ConsoleSite { readonly method: ConsoleMethod; readonly span?: SourceSpan; readonly args: readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]; readonly words: number;}Instance properties
methodread onlyConsoleMethodspanoptionalread onlySourceSpanargsread onlyreadonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]wordsread onlynumber
Source
src/core/console.ts, line 136, at commit 26de7be8