Skip to content

Commit

Permalink
improve typescript types
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmehta committed Mar 22, 2020
1 parent e379f12 commit 7dcdd4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.d.ts
Expand Up @@ -4,8 +4,11 @@ declare module 'static-observable' {
export default class StaticObservable<ValueType> extends Observable<
ValueType
> {
next(val: ValueType): void
error(error: Error): void
complete(): void
static next(val: ValueType): StaticObservable<ValueType>
static error(error: Error): StaticObservable<ValueType>
static complete(): StaticObservable<ValueType>
next(val: ValueType): this
error(error: Error): this
complete(): this
}
}

0 comments on commit 7dcdd4a

Please sign in to comment.