---
title: "CapProfile: type in Backends, TypeShade API reference"
description: "CapProfile, a type in Backends. A backend's capability table, and the single authority for what its target supports."
url: https://typeshade.dev/api/capprofile/
language: en
---

# `CapProfile`

Type in Backends

A backend's capability table, and the single authority for what its target supports.

`import type { CapProfile } from 'typeshade'`

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

## Syntax

```ts
type CapProfile = Readonly<Partial<Record<Capability, CapSupport>>>;
```

## Description

Membership is support: a capability with a row can be emitted on this target, and a capability without one makes emit throw [`UnsupportedFeatureError`](https://typeshade.dev/api/unsupportedfeatureerror/) naming it. Everything else is derived from the same rows: coverage from the keys (`Capabilities.fromProfile`), the source directive header from each row’s `directive`, and the host activation list from each row’s `hostFeature` ([`hostFeaturesFor`](https://typeshade.dev/api/hostfeaturesfor/)), so the three cannot disagree.

## See also

- [`UnsupportedFeatureError`](https://typeshade.dev/api/unsupportedfeatureerror/)
- [`hostFeaturesFor`](https://typeshade.dev/api/hostfeaturesfor/)

## Source

[`src/core/backend.ts`, line 42](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backend.ts#L42), at commit af54ddad5
