class Transformation

Abstract base class for all transformations. Implements the Strategy pattern for rule transformations. All transformations are fully asynchronous to support streaming and non-blocking operations.

Constructors

new
Transformation(logger?: ILogger)

Creates a new transformation

Properties

abstract
readonly
name: string

Human-readable name for logging

abstract
readonly
type: TransformationType

The transformation type identifier

protected
readonly
logger: ILogger

Logger instance for output

Methods

protected
debug(message: string): void

Log a debug message

protected
error(message: string): void

Log an error message

abstract
execute(
rules: readonly string[],
): Promise<readonly string[]>

Executes the transformation on the given rules.

protected
info(message: string): void

Log an info message

Usage

import { Transformation } from ".";