Skip to content

Commit

Permalink
Merge pull request #8782 from zhujinxuan/exact-id-update
Browse files Browse the repository at this point in the history
[TypeScript] Fix UpdateParams id type doesn't use generic type
  • Loading branch information
slax57 committed Mar 31, 2023
2 parents 9679606 + 4c11403 commit b51ebdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ export interface GetManyReferenceResult<RecordType extends RaRecord = any> {
};
}

export interface UpdateParams<T = any> {
id: Identifier;
export interface UpdateParams<T extends RaRecord = any> {
id: T['id'];
data: Partial<T>;
previousData: T;
meta?: any;
Expand Down

0 comments on commit b51ebdf

Please sign in to comment.