/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/schema/src/plugin.ts
13 строк
344 B
Kit Langton
refactor(schema): normalize module patterns (#33770)
25 июн 2026, 18:42
Не верифицирован
25 июн 2026, 18:42
7854f5b
Код
Авторство
О чём код?
export * as Plugin from "./plugin" import { Schema } from "effect" import { define, inventory } from "./event" export const ID = Schema.String.pipe(Schema.brand("Plugin.ID")) export type ID = typeof ID.Type const Added = define({ type: "plugin.added", schema: { id: ID }, }) export const Event = { Added, Definitions: inventory(Added) }