Exporting foreign key json type
This commit is contained in:
1 parent
f0bf294d3d
commit
614dc19095
1 file changed
+4
-4
@@ -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