14 lines
532 B
TypeScript
14 lines
532 B
TypeScript
export * as ConfigFormatter from "./formatter"
|
|
|
|
import { Schema } from "effect"
|
|
|
|
export const Entry = Schema.Struct({
|
|
disabled: Schema.optional(Schema.Boolean),
|
|
command: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
environment: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
extensions: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
})
|
|
|
|
export const Info = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry)])
|
|
export type Info = Schema.Schema.Type<typeof Info>
|