refactor(schema): extract public event definitions (#33579)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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) }
|
||||
Reference in New Issue
Block a user