- Enhanced ESLint configuration to better support TypeScript file patterns and added centralized dependency versions using pnpm catalogs. - Updated TypeScript configurations across applications to utilize new file structure and improved type inference with Zod. - Refactored domain modules to replace deprecated type inference methods, ensuring better type safety and consistency. - Cleaned up package.json files to standardize dependency versions and improve overall project maintainability.
23 lines
907 B
TypeScript
23 lines
907 B
TypeScript
import type { z } from "zod";
|
|
import type {
|
|
activityTypeSchema,
|
|
activitySchema,
|
|
dashboardStatsSchema,
|
|
nextInvoiceSchema,
|
|
dashboardSummarySchema,
|
|
dashboardErrorSchema,
|
|
activityFilterSchema,
|
|
activityFilterConfigSchema,
|
|
dashboardSummaryResponseSchema,
|
|
} from "./schema.js";
|
|
|
|
export type ActivityType = z.infer<typeof activityTypeSchema>;
|
|
export type Activity = z.infer<typeof activitySchema>;
|
|
export type DashboardStats = z.infer<typeof dashboardStatsSchema>;
|
|
export type NextInvoice = z.infer<typeof nextInvoiceSchema>;
|
|
export type DashboardSummary = z.infer<typeof dashboardSummarySchema>;
|
|
export type DashboardError = z.infer<typeof dashboardErrorSchema>;
|
|
export type ActivityFilter = z.infer<typeof activityFilterSchema>;
|
|
export type ActivityFilterConfig = z.infer<typeof activityFilterConfigSchema>;
|
|
export type DashboardSummaryResponse = z.infer<typeof dashboardSummaryResponseSchema>;
|