Commit 056888c 1 parent 089d134 commit 056888c Copy full SHA for 056888c
File tree 1 file changed +9
-2
lines changed
packages/evolu-server/src/frameworks
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import * as Either from "effect/Either";
7
7
import * as Exit from "effect/Exit" ;
8
8
import { flow } from "effect/Function" ;
9
9
import * as Match from "effect/Match" ;
10
- import express from "express" ;
10
+ import express , { Express } from "express" ;
11
11
import { Kysely , SqliteDialect } from "kysely" ;
12
12
import path from "path" ;
13
13
import { Server , ServerLive } from "../Server.js" ;
@@ -26,7 +26,14 @@ const createDb = (fileName: string) =>
26
26
} ) ,
27
27
} ) ;
28
28
29
- export const createExpressApp = Effect . gen ( function * ( _ ) {
29
+ export const createExpressApp : Effect . Effect <
30
+ {
31
+ app : Express ;
32
+ server : Server ;
33
+ } ,
34
+ never ,
35
+ never
36
+ > = Effect . gen ( function * ( _ ) {
30
37
const server = yield * _ (
31
38
Server . pipe (
32
39
Effect . provide ( ServerLive ) ,
You can’t perform that action at this time.
0 commit comments