# DeclaredProjection

TYPE in `@skmtc/core 0.63.4`

A projection class in an entry's `projections` list.

An entry lists every projection class its generator can insert: its own,
and each one of another generator that it inserts, such as the model
projection an operation generator takes its schemas from. From the list,
core can know before a run which files the generator can write.

Projections with the same `type` and `id`, and the same `toExportPath`
function (compared by reference), are taken to give the same answers: the
file plan asks one of them for all. So the answer of that static must not
depend on the class it is called on, through `this`. Their enrichments are
the same, because core reads them by the generator's id and the subject.

## Signature

```ts
import type { DeclaredProjection } from '@skmtc/core'

type DeclaredProjection =
  | DeclaredModelProjection
  | DeclaredOasOperationProjection
  | DeclaredWebhookProjection
```
