Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: Feat/refactor #1

Merged
merged 1 commit into from
Feb 1, 2025
Merged

wip: Feat/refactor #1

merged 1 commit into from
Feb 1, 2025

Conversation

AlexH-HankIT
Copy link
Contributor

No description provided.

@AlexH-HankIT AlexH-HankIT force-pushed the feat/refactor branch 6 times, most recently from 71e5e8b to 0923514 Compare January 27, 2025 19:08
@AlexH-HankIT AlexH-HankIT changed the title Feat/refactor wip: Feat/refactor Jan 27, 2025
@AlexH-HankIT AlexH-HankIT force-pushed the feat/refactor branch 14 times, most recently from 897b93a to 0ee4055 Compare February 1, 2025 12:14
Add event system to BaseRequest with loading event support

Introduced an event system to `BaseRequest` to enable custom event handling. Added `RequestEvents` enum to define supported events, starting with a `LOADING` event. Updated `send()` method to dispatch loading events, enhancing extensibility and improving state management.

Refactor BaseRequest to support generics and improve flexibility

Added generic type parameters to `BaseRequest` for enhanced type safety and configurability. Introduced strongly typed parameter handling in `setParams` and `withParams` methods. Improved structure and maintainability while preparing the request system for more robust use cases.

Add event system to BaseRequest with loading event support

Introduced an event system to `BaseRequest` to enable custom event handling. Added `RequestEvents` enum to define supported events, starting with a `LOADING` event. Updated `send()` method to dispatch loading events, enhancing extensibility and improving state management.

Refactor service layer contracts and improve type safety

Reorganized service layer to replace class-based ResponseError with type-safe interfaces and optional properties. Improved error handling logic consistency and added stricter type annotations throughout. These changes enhance maintainability, align with modern TypeScript practices, and improve code clarity.

Refactor request/response architecture for clarity and extensibility

Streamlined request/response handling by introducing type-safe interfaces, improving error handling, and replacing redundant classes. Deprecated `ResponseDto` and similar constructs in favor of improved abstraction via handler contracts. These changes adhere to better TypeScript patterns for extensibility and maintainability.
@AlexH-HankIT AlexH-HankIT merged commit ba17085 into main Feb 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant