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! 💪