ConsoleSite
On this page

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 only ConsoleMethod
spanoptionalread only SourceSpan
argsread only readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]
wordsread only number

Source

src/core/console.ts, line 136, at commit 26de7be8

Edit this page Report a problem