Skip to content

Commit 507dcc0

Browse files
committed
Fix documentation about Field generic parameter
1 parent 368403e commit 507dcc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Fields.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,6 @@ export const PostShow = () => (
639639
);
640640
```
641641

642-
**Limitation**: You must not extend `RaRecord` for this to work. This is because `RaRecord` extends `Record<string, any>` and TypeScript would not be able to infer your types properties.
642+
**Limitation**: You must not use interfaces nor extend `RaRecord` for this to work or TypeScript would not be able to infer your types properties.
643643

644644
Specifying the record type will also allow your IDE to provide auto-completion for both the `source` and `sortBy` prop. Note that the `sortBy` prop also accepts any string.

0 commit comments

Comments
 (0)