@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 22 lines 754 Bytes
Raw
1 /**
2 * Bun layer for Effect's `FileSystem` service.
3 *
4 * This module exposes one `layer` that provides `FileSystem` in Bun by using
5 * the shared Node file-system implementation. Once the layer is provided,
6 * programs use the standard `effect/FileSystem` service operations.
7 *
8 * @stability unstable
9 * @since 4.0.0
10 */
11 import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem"
12 import type { FileSystem } from "effect/FileSystem"
13 import type * as Layer from "effect/Layer"
14
15 /**
16 * Layer that provides the `FileSystem` service for Bun using the shared Node file-system implementation.
17 *
18 * @stability unstable
19 * @category layers
20 * @since 4.0.0
21 */
22 export const layer: Layer.Layer<FileSystem, never, never> = NodeFileSystem.layer