@rickosborne/rebound
Version:
Rick Osborne's utilities for working with bounded numbers
20 lines • 751 B
TypeScript
import type { Comparator } from "@rickosborne/typical";
import type { Bound } from "./bound.js";
export declare const unbounded: unique symbol;
export type Unbounded = typeof unbounded;
export interface RangeLike<T> {
readonly comparator: Comparator<T>;
readonly isBounded: boolean;
readonly isBoundedAbove: boolean;
readonly isBoundedBelow: boolean;
readonly isEmpty: boolean;
readonly isLowerInc: boolean;
readonly isSingleton: boolean;
readonly isUpperInc: boolean;
readonly label: string;
readonly lowerBound: Bound<T> | Unbounded;
readonly lowerEndpoint: T | undefined;
readonly upperBound: Bound<T> | Unbounded;
readonly upperEndpoint: T | undefined;
}
//# sourceMappingURL=range-like.d.ts.map