File tree 3 files changed +3
-3
lines changed
packages/ra-core/src/controller
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { CreateControllerResult } from './useCreateController';
24
24
*/
25
25
export const useCreateContext = < RecordType extends RaRecord = RaRecord > (
26
26
props ?: Partial < CreateControllerResult < RecordType > >
27
- ) : Partial < CreateControllerResult < RecordType > > => {
27
+ ) : CreateControllerResult < RecordType > => {
28
28
const context = useContext < CreateControllerResult < RecordType > > (
29
29
// Can't find a way to specify the RecordType when CreateContext is declared
30
30
// @ts -ignore
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { EditControllerResult } from './useEditController';
24
24
*/
25
25
export const useEditContext = < RecordType extends RaRecord = any > (
26
26
props ?: Partial < EditControllerResult < RecordType > >
27
- ) : Partial < EditControllerResult < RecordType > > => {
27
+ ) : EditControllerResult < RecordType > => {
28
28
// Can't find a way to specify the RecordType when EditContext is declared
29
29
// @ts -ignore
30
30
const context = useContext < EditControllerResult < RecordType > > ( EditContext ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import { ShowControllerResult } from './useShowController';
24
24
*/
25
25
export const useShowContext = < RecordType extends RaRecord = any > (
26
26
props ?: Partial < ShowControllerResult < RecordType > >
27
- ) : Partial < ShowControllerResult < RecordType > > => {
27
+ ) : ShowControllerResult < RecordType > => {
28
28
// Can't find a way to specify the RecordType when ShowContext is declared
29
29
// @ts -ignore
30
30
const context = useContext < ShowControllerResult < RecordType > > ( ShowContext ) ;
You can’t perform that action at this time.
0 commit comments