We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cb7557a + 9a450d0 commit 2ea0259Copy full SHA for 2ea0259
packages/ra-ui-materialui/src/types.ts
@@ -36,7 +36,7 @@ export interface EditProps extends ResourceComponentPropsWithId {
36
undoable?: boolean;
37
onSuccess?: (data: RaRecord) => void;
38
onFailure?: (error: any) => void;
39
- transform?: (data: RaRecord) => RaRecord;
+ transform?: (data: RaRecord) => RaRecord | Promise<RaRecord>;
40
title?: string | ReactElement;
41
}
42
@@ -49,7 +49,7 @@ export interface CreateProps extends ResourceComponentProps {
49
record?: Partial<RaRecord>;
50
51
52
53
54
55
0 commit comments