mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 10:21:53 +00:00
simplify websocket opening and response types from BE
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { Observable } from 'rxjs'
|
||||
import { Store } from '../store'
|
||||
import { Update } from '../types'
|
||||
import { RPCResponse } from './ws-source'
|
||||
|
||||
export interface Source<T> {
|
||||
watch$(store?: Store<T>): Observable<RPCResponse<Update<T>>>
|
||||
watch$(store?: Store<T>): Observable<Update<T>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user