$ open source · GPL-3.0 — need a commercial license? imqueue.com →

DateRange class

A range between two dates, as an @imqueue/rpc type.

Signature:

export declare class DateRange implements IRange 

Implements: IRange

Remarks

Accepts a Date or an ISO-8601 string on either bound, because a remote caller has only the string — a Date does not survive JSON.

Used through the Range-suffix convention rather than by naming the column directly: filter <column>Range and query.withRangeFilters moves it onto <column>. Passing both forms for one column throws a TypeError rather than silently preferring one.

Example

// reservations whose `duration` column falls inside the window
const filter = {
    durationRange: { start: '2026-08-01', end: '2026-08-31' },
} as FilterInput;

Properties

Property

Modifiers

Type

Description

end

string | Date

End of the range — a Date, or an ISO-8601 string from a remote caller.

start

string | Date

Start of the range — a Date, or an ISO-8601 string from a remote caller.