Extract a string union of property names from type `T` whose value can be compared with `>`, `>=`, etc.
npx atmx add type comparable-property
Copy and paste the following method into @/utils/helpers/undefined.ts:
@/utils/helpers/undefined.ts
import type { Comparable } from "@/types/comparable.ts";import type { CompatibleProperty } from "@/types/compatible-property.ts"; /*** Extract a string union of property names from type `T` whose value* can be compared with `>`, `>=`, etc.*/export type ComparableProperty<T> = CompatibleProperty<T, Comparable>;