- Modified ESLint configuration to support file patterns for TypeScript files. - Updated TypeScript configurations across multiple applications to use ES2024 and enable composite builds. - Refactored type inference in domain modules to utilize Zod's infer type for better type safety. - Enhanced utility functions to handle various data types more robustly, improving overall code quality.
23 lines
932 B
TypeScript
23 lines
932 B
TypeScript
import type { infer as ZodInfer } from "zod";
|
|
import type {
|
|
activityTypeSchema,
|
|
activitySchema,
|
|
dashboardStatsSchema,
|
|
nextInvoiceSchema,
|
|
dashboardSummarySchema,
|
|
dashboardErrorSchema,
|
|
activityFilterSchema,
|
|
activityFilterConfigSchema,
|
|
dashboardSummaryResponseSchema,
|
|
} from "./schema.js";
|
|
|
|
export type ActivityType = ZodInfer<typeof activityTypeSchema>;
|
|
export type Activity = ZodInfer<typeof activitySchema>;
|
|
export type DashboardStats = ZodInfer<typeof dashboardStatsSchema>;
|
|
export type NextInvoice = ZodInfer<typeof nextInvoiceSchema>;
|
|
export type DashboardSummary = ZodInfer<typeof dashboardSummarySchema>;
|
|
export type DashboardError = ZodInfer<typeof dashboardErrorSchema>;
|
|
export type ActivityFilter = ZodInfer<typeof activityFilterSchema>;
|
|
export type ActivityFilterConfig = ZodInfer<typeof activityFilterConfigSchema>;
|
|
export type DashboardSummaryResponse = ZodInfer<typeof dashboardSummaryResponseSchema>;
|