mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-13 13:57:43 +02:00
12 lines
416 B
TypeScript
12 lines
416 B
TypeScript
import { Function } from "@/Neon/Function";
|
|
import * as Effect from "effect/Effect";
|
|
import { ConnectBranch } from "./connect-database.ts";
|
|
import { connectHandler } from "./connect-handler.ts";
|
|
|
|
export default class ConnectFunction extends Function<ConnectFunction>()(
|
|
"ConnectFunction",
|
|
Effect.gen(function* () {
|
|
return { branch: yield* ConnectBranch, main: import.meta.url };
|
|
}),
|
|
connectHandler,
|
|
) {}
|