We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443e908 commit e07b5afCopy full SHA for e07b5af
packages/node_modules/overmind-angular/src/index.ts
@@ -86,7 +86,10 @@ export class Service<App extends Overmind<any>> {
86
})
87
}
88
89
- select(expr: any) {
90
- return this.state$.pipe(map((value) => expr(value)))
+ select<T>(expr: (state: App['state']) => T): Observable<T>
+ select(): Observable<App['state']> {
91
+ return this.state$.pipe(
92
+ map((value) => (arguments[0] ? arguments[0](value) : value))
93
+ )
94
95
0 commit comments