Skip to content
// EFFECT DAYS 2026

Transform

1 exports Since v4.0.0 Source

Testing

Transforms trailing doctest assertion comments into executable assertions.

Details

An assertion may trail an expression statement or a single initialized const identifier. Expected values are TypeScript expressions evaluated in the same lexical scope.

Signature

declare function transform(source: string, file: string, line: number): string