plugin.ts 344 B

12345678910111213
  1. export * as Plugin from "./plugin"
  2. import { Schema } from "effect"
  3. import { define, inventory } from "./event"
  4. export const ID = Schema.String.pipe(Schema.brand("Plugin.ID"))
  5. export type ID = typeof ID.Type
  6. const Added = define({
  7. type: "plugin.added",
  8. schema: { id: ID },
  9. })
  10. export const Event = { Added, Definitions: inventory(Added) }