---
title: "ConsoleSite: TypeShade 셰이더 API의 콘솔 분류 인터페이스 참조 문서"
description: "ConsoleSite, TypeShade API의 콘솔 분류에 속하는 인터페이스입니다. WGSL이 기록하는 콘솔 호출 하나입니다. 메서드, 작성된 위치, 작성된 순서대로의 인자, 그 항목이 차지하는 워드를 담습니다."
url: https://typeshade.dev/ko/api/consolesite/
language: ko
---

# `ConsoleSite`

인터페이스, 콘솔 분류

WGSL이 기록하는 콘솔 호출 하나입니다. 메서드, 작성된 위치, 작성된 순서대로의 인자, 그 항목이 차지하는 워드를 담습니다.

`import type { ConsoleSite } from 'typeshade'`

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

```ts
interface ConsoleSite {
  readonly method: ConsoleMethod;
  readonly span?: SourceSpan;
  readonly args: readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[];
  readonly words: number;
}
```

## 인스턴스 속성

**`method` 읽기 전용 `ConsoleMethod`**

**`span` 선택 사항 읽기 전용 `SourceSpan`**

**`args` 읽기 전용 `readonly ({ readonly label: string } | { readonly shape: ConsoleShape })[]`**

**`words` 읽기 전용 `number`**

## 소스

[`src/core/console.ts`, 136행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/console.ts#L136), 커밋 af54ddad5 기준
