-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: order should allow only model fields, not methods (#7188)
Closes: #7178 Co-authored-by: Tomasz Rychlewicz <tomasz.rychlewicz@explaineverything.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Interface of the entity fields names only (without functions) | ||
*/ | ||
export type EntityFieldsNames<Entity = any> = { | ||
[P in keyof Entity]: Entity[P] extends Function ? never : P; | ||
}[keyof Entity]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters