Files
effect-fc/packages/example/src/runtime.ts
Julien Valverdé 6c8f6622dd
All checks were successful
Lint / lint (push) Successful in 11s
Example work
2025-07-01 23:16:33 +02:00

15 lines
486 B
TypeScript

import { FetchHttpClient } from "@effect/platform"
import { Clipboard, Geolocation, Permissions } from "@effect/platform-browser"
import { Layer } from "effect"
import { ReactManagedRuntime } from "effect-fc"
export const AppLive = Layer.empty.pipe(
Layer.provideMerge(Clipboard.layer),
Layer.provideMerge(Geolocation.layer),
Layer.provideMerge(Permissions.layer),
Layer.provideMerge(FetchHttpClient.layer),
)
export const runtime = ReactManagedRuntime.make(AppLive)