ConsoleSite
인터페이스, 콘솔 분류
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'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface ConsoleSite { readonly method: ConsoleMethod; readonly span?: SourceSpan; readonly args: readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]; readonly words: number;}인스턴스 속성
method읽기 전용ConsoleMethodspan선택 사항읽기 전용SourceSpanargs읽기 전용readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]words읽기 전용number
소스
src/core/console.ts, 136행, 커밋 c66579bf 기준