refactor(schema): extract public event definitions (#33579)
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
export * as FileSystem from "./filesystem"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { define, inventory } from "./event"
|
||||
import { NonNegativeInt, PositiveInt, RelativePath } from "./schema"
|
||||
|
||||
const Edited = define({
|
||||
type: "file.edited",
|
||||
schema: { file: Schema.String },
|
||||
})
|
||||
export const Event = { Edited, Definitions: inventory(Edited) }
|
||||
|
||||
export interface Entry extends Schema.Schema.Type<typeof Entry> {}
|
||||
export const Entry = Schema.Struct({
|
||||
path: RelativePath,
|
||||
|
||||
Reference in New Issue
Block a user