Global settings for Clack programs, stored in memory
| 18 | |
| 19 | /** Global settings for Clack programs, stored in memory */ |
| 20 | interface InternalClackSettings { |
| 21 | actions: Set<Action>; |
| 22 | aliases: Map<string, Action>; |
| 23 | messages: { |
| 24 | cancel: string; |
| 25 | error: string; |
| 26 | }; |
| 27 | withGuide: boolean; |
| 28 | date: { |
| 29 | monthNames: string[]; |
| 30 | messages: { |
| 31 | invalidMonth: string; |
| 32 | required: string; |
| 33 | invalidDay: (days: number, month: string) => string; |
| 34 | afterMin: (min: Date) => string; |
| 35 | beforeMax: (max: Date) => string; |
| 36 | }; |
| 37 | }; |
| 38 | } |
| 39 | |
| 40 | export const settings: InternalClackSettings = { |
| 41 | actions: new Set(actions), |
nothing calls this directly
no outgoing calls
no test coverage detected