NumericKeys: {
    [K in keyof T]-?: NonNullable<T[K]> extends number | bigint ? K : never
}[keyof T]

Type Parameters

  • T