From 5000bb2add687ea563fe739863a12e12bfae333b Mon Sep 17 00:00:00 2001 From: Andres Kalle Date: Thu, 23 Apr 2020 04:54:19 +0300 Subject: [PATCH] Corrected documented type for defaultValue (#2778) --- packages/fields/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fields/README.md b/packages/fields/README.md index d353879f7c0..d42709f0965 100644 --- a/packages/fields/README.md +++ b/packages/fields/README.md @@ -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. |