/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/config/reference.ts
22 строки
736 B
Dax
feat(core): add project reference guidance (#31601)
10 июн 2026, 07:08
Не верифицирован
10 июн 2026, 07:08
8a2cfc0
Код
Авторство
О чём код?
export * as ConfigReference from "./reference" import { Schema } from "effect" export class Git extends Schema.Class<Git>("ConfigV2.Reference.Git")({ repository: Schema.String, branch: Schema.String.pipe(Schema.optional), description: Schema.String.pipe(Schema.optional), hidden: Schema.Boolean.pipe(Schema.optional), }) {} export class Local extends Schema.Class<Local>("ConfigV2.Reference.Local")({ path: Schema.String, description: Schema.String.pipe(Schema.optional), hidden: Schema.Boolean.pipe(Schema.optional), }) {} export const Entry = Schema.Union([Schema.String, Git, Local]) export type Entry = typeof Entry.Type export const Info = Schema.Record(Schema.String, Entry) export type Info = typeof Info.Type