Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import { Layer } from "effect";
|
||||
|
||||
export const MainLayer = Layer.empty;
|
||||
@@ -0,0 +1,18 @@
|
||||
# Layers (Dependency Injection)
|
||||
|
||||
**Content**: Static Application Wiring.
|
||||
|
||||
## Usage
|
||||
Construct the final application layers here. This is where you decide:
|
||||
"In Production, use Postgres. In Test, use InMemory."
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
// Main.layer.ts
|
||||
export const MainLayer = Layer.mergeAll(
|
||||
PostgresLive,
|
||||
StripeLive,
|
||||
// ...
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user