formatter.ts 512 B

123456789101112
  1. export * as ConfigFormatter from "./formatter"
  2. import { Schema } from "effect"
  3. export class Entry extends Schema.Class<Entry>("ConfigV2.Formatter.Entry")({
  4. disabled: Schema.Boolean.pipe(Schema.optional),
  5. command: Schema.String.pipe(Schema.Array, Schema.optional),
  6. environment: Schema.Record(Schema.String, Schema.String).pipe(Schema.optional),
  7. extensions: Schema.String.pipe(Schema.Array, Schema.optional),
  8. }) {}
  9. export const Info = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry)])