@accounter/scraper-app
Version:
Scraper app with Fastify server and React UI
12 lines (8 loc) • 341 B
text/typescript
import { z } from 'zod';
const CurrencyRateEntrySchema = z.object({
date: z.string(),
currency: z.enum(['USD', 'EUR', 'GBP', 'CAD', 'JPY', 'AUD', 'SEK']),
rate: z.number(),
});
export const CurrencyRatesPayloadSchema = z.array(CurrencyRateEntrySchema);
export type CurrencyRatesPayload = z.infer<typeof CurrencyRatesPayloadSchema>;