Skip to content

Commit

Permalink
fix(docs): Fix linkType values & typos (#1236)
Browse files Browse the repository at this point in the history
* Update README.md
  • Loading branch information
DevlinRocha authored Oct 20, 2023
1 parent 2c08081 commit 1ee63b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ For the given (source) content type, transforms all its entries according to the
- `locale` one of the locales in the space being transformed
- `id` id of the current entry in scope

The return value must be an object with the same keys as specified in the `targetContentType`. Their values will be written to the respective entry fields for the current locale (i.e. `{nameField: 'myNewValue'}`). If it returns `undefined`, this the values for this locale on the entry will be left untouched.
The return value must be an object with the same keys as specified in the `targetContentType`. Their values will be written to the respective entry fields for the current locale (i.e. `{nameField: 'myNewValue'}`). If it returns `undefined`, the values for this locale on the entry will be left untouched.

##### `transformEntriesToType` Example

Expand Down Expand Up @@ -541,7 +541,7 @@ Creates a field with provided `id`.
- `Array` (requires `items`)
- `Link` (requires `linkType`)
- `ResourceLink` (requires `allowedResources`)
- **`items : Object`** _(required for type 'Array')_ – Defines the items of an Array field.
- **`items : Object`** _(required for type `Array`)_ – Defines the items of an Array field.
Example:

```javascript
Expand All @@ -554,9 +554,9 @@ Creates a field with provided `id`.
}
```

- **`linkType : string`** _(required for type 'Link')_ – Type of the referenced entry.
Can take the same values as the ones listed for `type` above.
- **`allowedResources`** _(required for type 'ResourceLink')_ - Defines which resources can be linked through the field.
- **`linkType : string`** _(required for type `Link`)_ – Type of the referenced entry.
Value must be either `Asset` or `Entry`.
- **`allowedResources`** _(required for type `ResourceLink`)_ - Defines which resources can be linked through the field.
- **`required : boolean`** – Sets the field as required.
- **`validations : Array`** – Validations for the field.
Example:
Expand Down

0 comments on commit 1ee63b8

Please sign in to comment.