Docs@skmtc/core

Operations

TYPE

OasOperationIndexBaseClass

@skmtc/core 0.63.4

The class that toOasOperationIndexBase returns: its statics, and a constructor that gives an OasOperationIndexInstance.

Signature

import type { OasOperationIndexBaseClass } from '@skmtc/core'

interface OasOperationIndexBaseClass<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType> extends OasOperationBaseStatics<EnrichmentType, IdType>

Properties

new, (args: OasOperationIndexConstructorArgs<EnrichmentType>) => OasOperationIndexInstance<EnrichmentType> required
lang, Lang required

The language of the base class. See LangSnippetConstructor.

id, string required

The generator's id.

type, 'oasOperation' required
toIdentifierName, (args: ToOasOperationIdentifierNameArgs<EnrichmentType, undefined>) => string required

The config's toIdentifierName.

toIdentifierType, (operation: OasOperation, context: GenerateContextType) => IdType required

The config's toIdentifierType.

toExportPath, (args: ToOasOperationExportPathArgs<EnrichmentType, undefined>) => string required

The export path of the config's Index, or else the config's toExportPath.

toIndex, ((args: ToOasOperationIndexArgs<EnrichmentType>) => OasOperationIndexProjection) | undefined required

The config's toIndex; undefined when it has none.

toGeneratorKey, (args: ToGeneratorKeyArgs<EnrichmentType>) => GeneratorKey required

The key of the definition. An operation projection's key holds the generator and the subject. An Index's key holds the generator, the file and the path of the Index, and never the subject.