| 62 | } |
| 63 | |
| 64 | export interface SpendControlStorage { |
| 65 | load(): { limits: SpendLimits; history: SpendRecord[] } | null; |
| 66 | save(data: { limits: SpendLimits; history: SpendRecord[] }): void; |
| 67 | } |
| 68 | |
| 69 | export class FileSpendControlStorage implements SpendControlStorage { |
| 70 | private readonly spendingFile: string; |
no outgoing calls
no test coverage detected