Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ServerProvider.ts

11 lines506 Bytes

1import type { ServerProvider } from "@t3tools/contracts";
2import type * as Effect from "effect/Effect";
3import type * as Stream from "effect/Stream";
4import type { ProviderMaintenanceCapabilities } from "../providerMaintenance.ts";
5​
6export interface ServerProviderShape {
7 readonly maintenanceCapabilities: ProviderMaintenanceCapabilities;
8 readonly getSnapshot: Effect.Effect<ServerProvider>;
9 readonly refresh: Effect.Effect<ServerProvider>;
10 readonly streamChanges: Stream.Stream<ServerProvider>;