# OasOperationFileOrIndex

TYPE in `@skmtc/core 0.63.4`

Where a projection's definition goes: a file of its own (`toExportPath`),
or an Index (`toIndex`), whose file is then its file. A projection in an
Index need not state a file; when it does, the Index's file still wins.

## Signature

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

type OasOperationFileOrIndex<EnrichmentType = undefined, ProjectionOptions = undefined> =
  | { toExportPath: ToExportPath<EnrichmentType, ProjectionOptions>; toIndex?: ToIndex<EnrichmentType, ProjectionOptions> }
  | { toIndex: ToIndex<EnrichmentType, ProjectionOptions>; toExportPath?: undefined }
```
