UNPKG

@accounter/scraper-app

Version:
12 lines (8 loc) 341 B
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>;