Skip to content

Commit

Permalink
fix(signals): fix Sort model type so it can autocomplet Entity type p…
Browse files Browse the repository at this point in the history
…rops

Fix the Sort type of withEntitiesLocalSort, so intelli sence on the field prop of the Sort type ,
automcompletes the props of the Entity

fix #138
  • Loading branch information
Gabriel Guerrero authored and gabrielguerrero committed Sep 22, 2024
1 parent aa5f7cb commit 8da3833
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type SortDirection = 'asc' | 'desc' | '';
export type Sort<Entity> = {
/** The id of the column being sorted. */
field: keyof Entity | string;
field: keyof Entity | (string & {});
/** The sort direction. */
direction: SortDirection;
};
Expand Down

0 comments on commit 8da3833

Please sign in to comment.