class SyncTransformation
extends Transformation

Abstract base class for synchronous transformations. These transformations perform CPU-bound operations without I/O. The sync method is wrapped in a resolved Promise for consistency with async operations.

Methods

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

Wraps the sync execution in a resolved Promise for interface compatibility.

abstract
executeSync(
rules: readonly string[],
): readonly string[]

Synchronously executes the transformation on the given rules.

Usage

import { SyncTransformation } from ".";