# toOasOperationProjectionBase

FUNCTION in `@skmtc/core 0.63.4`

Build an OAS operation projection base class from a per-generator config.

The returned class extends `base` - the generator's language
snippet base - so the projection hierarchy is language-bound at its root
while core stays language-blind (the base arrives as an opaque
constructor; core never names a concrete language class). The class
exposes the generator's `id`, `toIdentifierName`, `toIdentifierType`,
and `toExportPath` statics, inherits the
static `lang`
from the base, and injects `generatorKey` so subclasses don't have to.

Defines NO `register` / `registerInto` - register ergonomics are typed by
each language's concise vocabulary, which core can't name, so they live
in the language package's projection-base veneer over this factory.

The projection machinery previously hosted on
`OasOperationProjectionBase` lives here now, because the base class is no
longer statically known.

## Signature

```ts
import { toOasOperationProjectionBase } from '@skmtc/core'

toOasOperationProjectionBase<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType, ProjectionOptions = undefined>(
  base: LangSnippetConstructor,
  config: OasOperationProjectionBaseConfig<EnrichmentType, IdType, ProjectionOptions>
): OasOperationProjectionBaseClass<EnrichmentType, IdType, ProjectionOptions>
```

## Parameters

- `base` (LangSnippetConstructor, required)
- `config` (OasOperationProjectionBaseConfig<EnrichmentType, IdType, ProjectionOptions>, required)

## Returns

`OasOperationProjectionBaseClass<EnrichmentType, IdType, ProjectionOptions>`
