mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
15 lines
293 B
TypeScript
15 lines
293 B
TypeScript
import { Observable } from 'rxjs'
|
|
import { Update } from '../types'
|
|
import { Source } from './source'
|
|
|
|
export class MockSource<T> implements Source<T> {
|
|
|
|
constructor (
|
|
private readonly seed: Observable<Update<T>>,
|
|
) { }
|
|
|
|
watch$ (): Observable<Update<T>> {
|
|
return this.seed
|
|
}
|
|
}
|