Skip to content

Commit

Permalink
Update observable-fns to fix an issue with TypeScript 4.3 (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywer authored Jun 3, 2021
1 parent 5985e7a commit 79d91e1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
36 changes: 32 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"callsites": "^3.1.0",
"debug": "^4.2.0",
"is-observable": "^2.1.0",
"observable-fns": "^0.5.1"
"observable-fns": "^0.6.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/observable-promise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export class ObservablePromise<T> extends Observable<T> implements Promise<T> {
public readonly [Symbol.toStringTag]: "[object ObservablePromise]"

constructor(init: Initializer<T>) {
super(originalObserver => {
super((originalObserver: SubscriptionObserver<T>) => {
// tslint:disable-next-line no-this-assignment
const self = this
const observer = {
const observer: SubscriptionObserver<T> = {
...originalObserver,
complete() {
originalObserver.complete()
Expand Down

0 comments on commit 79d91e1

Please sign in to comment.