Exporting foreign key json type
This commit is contained in:
@@ -8,14 +8,14 @@ import { useList, useOne } from "@refinedev/core";
|
|||||||
import { ResourceContext } from "../../contexts/ResourceContext";
|
import { ResourceContext } from "../../contexts/ResourceContext";
|
||||||
import { CrudForm } from "../crud-form";
|
import { CrudForm } from "../crud-form";
|
||||||
|
|
||||||
type ForeignKeyReference = {
|
export type ForeignKeyReference = {
|
||||||
resource: string,
|
resource: string,
|
||||||
label: string,
|
label?: string,
|
||||||
displayedFields: [string],
|
displayedFields?: [string],
|
||||||
schema: string
|
schema: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type ForeignKeySchema = RJSFSchema & {
|
export type ForeignKeySchema = RJSFSchema & {
|
||||||
foreignKey?: {
|
foreignKey?: {
|
||||||
reference: ForeignKeyReference
|
reference: ForeignKeyReference
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user