refactor(schema): extract public event definitions (#33579)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
export * as Reference from "./reference"
|
||||
|
||||
import { Schema } from "effect"
|
||||
import { define, inventory } from "./event"
|
||||
import { AbsolutePath } from "./schema"
|
||||
|
||||
const Updated = define({ type: "reference.updated", schema: {} })
|
||||
export const Event = { Updated, Definitions: inventory(Updated) }
|
||||
|
||||
export interface LocalSource extends Schema.Schema.Type<typeof LocalSource> {}
|
||||
export const LocalSource = Schema.Struct({
|
||||
type: Schema.Literal("local"),
|
||||
|
||||
Reference in New Issue
Block a user