cartridges.ts
This file
Path
apps/platform/src/cartridges.ts
13 lines · 543 bytes · TypeScript
Last changed by
Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8
History of this fileTake it
1234567891011121314// A static re-export, not an `import()`: a dynamic import would make the bundler wrap every module it reaches in a lazy initializer.import type { Layer } from "effect";
import type { PlatformConfig } from "./platform.ts";import type { WorkerPorts } from "./ports.ts";
// Lives here so this module keeps a line of its own when its last cartridge is deleted.export type Cartridge = ( config: PlatformConfig) => Layer.Layer<never, never, WorkerPorts>;
// cartridge: visibilityexport { live as visibility } from "./visibility/live.ts";