Skip to content

Commit

Permalink
fix chaining of transform function (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
kotontrion authored Dec 28, 2023
1 parent 3ecc2e2 commit b2dc5f0
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 b2dc5f0

Please sign in to comment.