---
title: "FragmentDeclares: interface in Emit, TypeShade API reference"
description: "FragmentDeclares, an interface in Emit. What a fragment declares in the program it is composed into: the manifest a composer checks its host prelude against."
url: https://typeshade.dev/api/fragmentdeclares/
language: en
---

# `FragmentDeclares`

Interface in Emit

What a fragment declares in the program it is composed into: the manifest a composer checks its host prelude against.

`import type { FragmentDeclares } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface FragmentDeclares {
  readonly functions: readonly string[];
  readonly structs: readonly string[];
  readonly bindings: readonly string[];
  readonly consts: readonly string[];
  readonly overrides: readonly string[];
  readonly entryPoints: readonly string[];
}
```

## Description

Names are the emitted spellings, so they are the ones a host actually collides with.

## Instance properties

**`functions` read only `readonly string[]`**

Helper functions defined in the fragment (entry points are listed separately).

**`structs` read only `readonly string[]`**

Plain struct types. A struct consumed as a uniform or storage binding is emitted as a block, so its name appears under `bindings` instead.

**`bindings` read only `readonly string[]`**

Resource bindings the fragment declares, by binding name.

**`consts` read only `readonly string[]`**

Module constants.

**`overrides` read only `readonly string[]`**

Pipeline specialization constants (`overrideConst`).

**`entryPoints` read only `readonly string[]`**

Stage entry points. Listed whether or not they were emitted, so a composer that asked for declarations only still knows what it excluded.

## Source

[`src/core/fragment.ts`, line 29](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/fragment.ts#L29), at commit af54ddad5
