From 822ea38eb94dd45946552ee42f1cd13a25a0bdd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=20G=C3=B3mez?= Date: Fri, 25 Apr 2025 12:03:25 +0200 Subject: [PATCH] fix: correct readme image --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4fdd665..42dea9d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

- + Codely logo

@@ -14,7 +14,7 @@

- TypeScript utility type in order to ensure to return only properties (not methods) containing values in primitive types such as number or boolean (not Value Objects). + TypeScript utility type to ensure to return only properties (not methods) containing values in primitive types such as number or boolean (not Value Objects).

Take a look, play and have fun with this. @@ -54,7 +54,7 @@ When we want to have a `toPrimitives` method in order to pass an instance of the That is: - We want to **avoid including methods** such as the `thisFunctionShouldNotBeIncludedInTheToPrimitives` one, so the transformation should only include properties. -- We want to **flatten or unwrap encapsulated properties** such as the `courseId` and `courseTitle` ones. They are modelled as Value Objects (`CourseId` and `CourseTitle` classes), so the transformation or flatten should only include properties in a recursive manner. +- We want to **flatten or unwrap encapsulated properties** such as the `courseId` and `courseTitle` ones. They are modeled as Value Objects (`CourseId` and `CourseTitle` classes), so the transformation or flatten should only include properties in a recursive manner. That is exactly what our `Primitives` utility type guarantees. Let's add it! 💪