Skip to content

Commit

Permalink
Trying to fix pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed Oct 7, 2024
1 parent 089d134 commit 056888c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/evolu-server/src/frameworks/Express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Either from "effect/Either";
import * as Exit from "effect/Exit";
import { flow } from "effect/Function";
import * as Match from "effect/Match";
import express from "express";
import express, { Express } from "express";
import { Kysely, SqliteDialect } from "kysely";
import path from "path";
import { Server, ServerLive } from "../Server.js";
Expand All @@ -26,7 +26,14 @@ const createDb = (fileName: string) =>
}),
});

export const createExpressApp = Effect.gen(function* (_) {
export const createExpressApp: Effect.Effect<
{
app: Express;
server: Server;
},
never,
never
> = Effect.gen(function* (_) {
const server = yield* _(
Server.pipe(
Effect.provide(ServerLive),
Expand Down

0 comments on commit 056888c

Please sign in to comment.