mirror of
https://github.com/tiennm99/ccstatusline.git
synced 2026-09-13 10:17:58 +00:00
15 lines
552 B
TypeScript
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>; |