Skip to content

Commit

Permalink
refactor(rstream): update opts handling (TS3.9)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed May 13, 2020
1 parent 1d7e911 commit ba76da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rstream/src/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Subscription<A, B>
this.ensureState();
let sub: Subscription<any, any> | undefined;
!peek(args) && args.pop();
let opts: SubscriptionOpts<any, any> =
const opts: Partial<SubscriptionOpts<any, any>> =
args.length > 1 && isPlainObject(peek(args))
? { ...args.pop() }
: {};
Expand Down

0 comments on commit ba76da6

Please sign in to comment.