Skip to content

Commit

Permalink
Corrected documented type for defaultValue (#2778)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjomble authored Apr 23, 2020
1 parent 3af6cc2 commit 5000bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fields/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Fields share some standard configuration options.
| -------------- | ----------------------------------- | ----------- | --------------------------------------------------------------------------------------- |
| `type` | `FieldType` | (required) | |
| `schemaDoc` | `String` | `false` | A description for the field used in the AdminUI. |
| `defaultValue` | `Boolean` | `undefined` | A default value of the field. |
| `defaultValue` | `Any` \| `Function` | `undefined` | A valid default value for the field type. Functions must return a valid value. Use `undefined` to set no default, and `null` to set an empty default. |
| `isUnique` | `Boolean` | `false` | Whether or not the field should be unique. |
| `isRequired` | `Boolean` | `false` | Whether or not the field should be mandatory. |
| `access` | `Boolean` \| `Function` \| `Object` | `true` | See: [Access control](https://keystonejs.com/guides/access-control) options for fields. |
Expand Down

0 comments on commit 5000bb2

Please sign in to comment.