Skip to content

API reference > @kontsedal/olas-codemod > Transform

Transform type ​

One 0.8 → 1.0 rewrite. run edits the given files in place, in memory; the caller decides whether to save them.

Signature:

typescript
type Transform = {
  readonly name: string;
  readonly description: string;
  run(files: readonly SourceFile[], context: TransformContext): TransformResult;
};

References: TransformContext, TransformResult

Released under the MIT License.