10 lines
268 B
TypeScript
10 lines
268 B
TypeScript
import { Context, Layer } from "effect"
|
|
import express, { type Express } from "express"
|
|
|
|
|
|
export class ExpressApp extends Context.Tag("ExpressApp")<ExpressApp, Express>() {}
|
|
|
|
export module ExpressApp {
|
|
export const Live = Layer.sync(ExpressApp, () => express())
|
|
}
|