Exporting foreign key json type

This commit is contained in:
2025-04-22 21:20:38 +02:00
parent f0bf294d3d
commit 614dc19095

View File

@@ -8,14 +8,14 @@ import { useList, useOne } from "@refinedev/core";
import { ResourceContext } from "../../contexts/ResourceContext";
import { CrudForm } from "../crud-form";
type ForeignKeyReference = {
export type ForeignKeyReference = {
resource: string,
label: string,
displayedFields: [string],
label?: string,
displayedFields?: [string],
schema: string
}
type ForeignKeySchema = RJSFSchema & {
export type ForeignKeySchema = RJSFSchema & {
foreignKey?: {
reference: ForeignKeyReference
}