NumericKeys type
Numeric keys of an entity, used to constrain the field argument of
sum, avg, min, and max aggregations.
type NumericKeys<T> = {
[K in keyof T]-?: NonNullable<T[K]> extends number ? K : never
}[keyof T]
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Numeric keys of an entity, used to constrain the field argument of
sum, avg, min, and max aggregations.
type NumericKeys<T> = {
[K in keyof T]-?: NonNullable<T[K]> extends number ? K : never
}[keyof T]