---
title: "discard: \"use typeshade\" 파일에서 쓰는 상수 이름 하나, TypeShade 언어 참조"
description: "discard (상수), TypeShade 언어 참조 항목입니다. Discards the current fragment, so nothing is written for it."
url: https://typeshade.dev/ko/reference/constants/discard/
language: ko
---

# `discard`

상수

Discards the current fragment, so nothing is written for it.

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

```ts
declare const discard: void
```

## 설명

Allowed in a fragment entry and in a helper that only fragment entries reach; compiles to `discard;` on both targets.

## 예제

- [`gallery/cutout/cutout.shade.ts`](https://typeshade.dev/ko/guide/examples/cutout/)

## 함께 보기

- [상수](https://typeshade.dev/ko/reference/constants/)
