Query refactoring
Some checks failed
Lint / lint (push) Failing after 12s

This commit is contained in:
Julien Valverdé
2025-05-22 19:49:40 +02:00
parent 619dbe32ae
commit 810e4bb9fd
7 changed files with 17 additions and 46 deletions

View File

@@ -1,5 +1,6 @@
import type * as AsyncData from "@typed/async-data"
import { type Cause, Effect, type Fiber, type Option, type Stream, type SubscriptionRef } from "effect"
import * as QueryRunner from "./QueryRunner.js"
export interface QueryService<K extends readonly unknown[], A, E> {
@@ -12,5 +13,5 @@ export interface QueryService<K extends readonly unknown[], A, E> {
}
export const Tag = <const Id extends string>(id: Id) => <
Self, K extends readonly unknown[], A, E = never,
>() => Effect.Tag(id)<Self, QueryService<K, A, E>>()
Self, K extends readonly unknown[], A, E = never, R = never,
>() => Effect.Tag(id)<Self, QueryRunner.QueryRunner<K, A, E, R>>()