Query refactoring
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-03-10 18:37:45 +01:00
parent be8098fb7d
commit 94a0864132
3 changed files with 8 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
import type * as AsyncData from "@typed/async-data"
import { type Cause, Effect, type Fiber, type Stream, type SubscriptionRef } from "effect"
import { type Cause, Effect, type Fiber, type Option, type SubscriptionRef } from "effect"
export interface QueryService<K extends readonly unknown[], A, E> {
readonly keyStream: Stream.Stream<K>
readonly latestKey: SubscriptionRef.SubscriptionRef<Option.Option<K>>
readonly state: SubscriptionRef.SubscriptionRef<AsyncData.AsyncData<A, E>>
readonly refresh: Effect.Effect<Fiber.RuntimeFiber<void, Cause.NoSuchElementException>>
}