Download packages/schema/src/filesystem-watcher.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/filesystem-watcher.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/schema/src/filesystem-watcher.ts
-
curl -L -o filesystem-watcher.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/schema/src/filesystem-watcher.ts
361 Bytes
| export * as FileSystemWatcher from "./filesystem-watcher" | |
| import { Schema } from "effect" | |
| import { define, inventory } from "./event" | |
| const Updated = define({ | |
| type: "file.watcher.updated", | |
| schema: { | |
| file: Schema.String, | |
| event: Schema.Literals(["add", "change", "unlink"]), | |
| }, | |
| }) | |
| export const Event = { Updated, Definitions: inventory(Updated) } | |