Open kidroca opened 1 year ago
It seems min
and max
are not part of the CmsFieldRelation
interface
https://github.com/decaporg/decap-cms/blob/5d33d098db7917a8e416f4a634db5aaf13f60cbb/packages/netlify-cms-core/index.d.ts#L204-L232
The fields are available on the CmsFieldList
interface
https://github.com/decaporg/decap-cms/blob/5d33d098db7917a8e416f4a634db5aaf13f60cbb/packages/netlify-cms-core/index.d.ts#L149-L150
And on the CmsFieldSelect
interface
https://github.com/decaporg/decap-cms/blob/5d33d098db7917a8e416f4a634db5aaf13f60cbb/packages/netlify-cms-core/index.d.ts#L200-L201
Describe the bug
If we define a
relation
field withmultiple: true
andmin
ormax
we get the following typescript typings errorTo Reproduce
Sample code:
Expected behavior
No typescript error should occur, because
min
andmax
are valid relation propertiesScreenshots
Applicable Versions:
CMS configuration
Additional context