- Adjusted .prettierrc to ensure consistent formatting with a newline at the end of the file. - Reformatted eslint.config.mjs for improved readability by aligning array elements. - Updated pnpm-lock.yaml to use single quotes for consistency across dependencies. - Simplified worktree setup in .cursor/worktrees.json for cleaner configuration. - Enhanced documentation in .cursor/plans to clarify architecture refactoring. - Refactored various service files for improved readability and maintainability, including rate-limiting and auth services. - Updated imports and exports across multiple files for consistency and clarity. - Improved error handling and logging in service methods to enhance debugging capabilities. - Streamlined utility functions for better performance and maintainability across the domain packages.
27 lines
694 B
TypeScript
27 lines
694 B
TypeScript
/**
|
|
* Domain Toolkit
|
|
*
|
|
* Utility functions and helpers used across all domain packages.
|
|
*/
|
|
|
|
export * as Formatting from "./formatting/index.js";
|
|
export * as Validation from "./validation/index.js";
|
|
export * as Typing from "./typing/index.js";
|
|
|
|
// Re-export commonly used utilities for convenience
|
|
export { formatCurrency } from "./formatting/currency.js";
|
|
export type { SupportedCurrency } from "./formatting/currency.js";
|
|
|
|
// Re-export AsyncState types and helpers
|
|
export type { AsyncState } from "./typing/helpers.js";
|
|
export {
|
|
createIdleState,
|
|
createLoadingState,
|
|
createSuccessState,
|
|
createErrorState,
|
|
isIdle,
|
|
isLoading,
|
|
isSuccess,
|
|
isError,
|
|
} from "./typing/helpers.js";
|