diff --git a/docs/under-the-hood.md b/docs/under-the-hood.md index 9396e46..2e1389e 100644 --- a/docs/under-the-hood.md +++ b/docs/under-the-hood.md @@ -29,7 +29,7 @@ Each property of the DTO will be checked: does it have a PHP type and/or does it A good example of a type processor is the `ReplaceDefaultsTypeProcessor`. This one will replace some default types you can define in the configuration with a TypeScript representation. For example transforming `DateTime` or `Carbon` types to `string`. DTO's often have properties that contain other DTO's, or even other custom types. This is why we'll also keep track of the missing symbols when transforming a DTO. -Let's say your DTO has a property that contains another DTO. At the moment of transformation, the package will not know how that other DTO should be transformed. We'll temporarily use a missing symbol that can be replaced by a reference to the correcty DTO type later. +Let's say your DTO has a property that contains another DTO. At the moment of transformation, the package will not know how that other DTO should be transformed. We'll temporarily use a missing symbol that can be replaced by a reference to the correct DTO type later. ## Step 3: Replacing missing symbols diff --git a/docs/usage/annotations.md b/docs/usage/annotations.md index c3a3c59..2d555ba 100644 --- a/docs/usage/annotations.md +++ b/docs/usage/annotations.md @@ -114,7 +114,7 @@ It is possible to directly represent a type as TypeScript within your PHP code: class CustomString{} ``` -Now when `Language` is being transformed, the TypeScript respresentation is used: +Now when `Language` is being transformed, the TypeScript representation is used: ```tsx export type CustomString = string | null;