Skip to content

Commit

Permalink
fix chaining of transform function (Aylur#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotontrion authored and gorsbart committed Feb 28, 2024
1 parent 8ca01d2 commit 519aa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Binding<

transform<T>(fn: (v: Return) => T) {
const bind = new Binding<Emitter, Prop, T>(this.emitter, this.prop);
const prev = bind.transformFn;
const prev = this.transformFn;
// @ts-expect-error
bind.transformFn = (v: Return) => fn(prev(v));
return bind;
Expand Down

0 comments on commit 519aa16

Please sign in to comment.