diff --git a/implementations/javascript/src/fold.ts b/implementations/javascript/src/fold.ts index de98672..a5b455e 100644 --- a/implementations/javascript/src/fold.ts +++ b/implementations/javascript/src/fold.ts @@ -68,9 +68,9 @@ export class IdentityFold extends ValueFold { } export class MapFold extends ValueFold { - readonly f: (t: T) => R; + readonly f: (t: T) => Value; - constructor(f: (t: T) => R) { + constructor(f: (t: T) => Value) { super(); this.f = f; } @@ -127,7 +127,7 @@ export function fold(v: Value, o: FoldMethods): R export function mapPointers( v: Value, - f: (t: T) => R, + f: (t: T) => Value, ): Value { return fold(v, new MapFold(f));