feat: working PoC for reusing relationship filters in validate

This commit is contained in:
James
2022-04-04 21:20:21 -04:00
parent 485991bd48
commit df934dfeff
9 changed files with 76 additions and 21 deletions

View File

@@ -218,6 +218,16 @@ export type RelationshipField = FieldBase & {
filterOptions?: Where | ((options: filterOptionsProps) => Where);
}
export type ValueWithRelation = {
relationTo: string
value: string | number
}
export type RelationshipValue = (string | number)
| (string | number)[]
| ValueWithRelation
| ValueWithRelation[]
type RichTextPlugin = (editor: Editor) => Editor;
export type RichTextCustomElement = {