We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b12a15 commit 491e44dCopy full SHA for 491e44d
packages/ra-core/src/core/useResourceDefinition.ts
@@ -3,7 +3,11 @@ import defaults from 'lodash/defaults.js';
3
4
import { useResourceDefinitions } from './useResourceDefinitions';
5
import { useResourceContext } from './useResourceContext';
6
-import { ResourceDefinition, ResourceOptions } from '../types';
+import {
7
+ RecordToStringFunction,
8
+ ResourceDefinition,
9
+ ResourceOptions,
10
+} from '../types';
11
12
/**
13
* Hook to get the definition of a given resource
@@ -70,5 +74,5 @@ export interface UseResourceDefinitionOptions {
70
74
readonly recordRepresentation?:
71
75
| string
72
76
| React.ReactElement
73
- | ((record: any) => string);
77
+ | RecordToStringFunction;
78
}
0 commit comments