Files
ccstatusline/src/types/PowerlineConfig.ts
T

15 lines
552 B
TypeScript

import { z } from 'zod';
// Schema for powerline configuration
export const PowerlineConfigSchema = z.object({
enabled: z.boolean().default(false),
separators: z.array(z.string()).default(['\uE0B0']),
separatorInvertBackground: z.array(z.boolean()).default([false]),
startCaps: z.array(z.string()).default([]),
endCaps: z.array(z.string()).default([]),
theme: z.string().optional(),
autoAlign: z.boolean().default(false)
});
// Inferred type from schema
export type PowerlineConfig = z.infer<typeof PowerlineConfigSchema>;