@livefolio/sdk / DateRange
Type Alias: DateRange
DateRange =
object
Defined in: interfaces/types.ts:90
Half-open calendar interval [from, to). Used throughout the SDK wherever a date range is required. from is inclusive; to is exclusive.
Example
ts
import type { DateRange } from '@livefolio/sdk';
const range: DateRange = {
from: new Date('2024-01-01'),
to: new Date('2025-01-01'),
};Properties
from
from:
Date
Defined in: interfaces/types.ts:92
Inclusive start of the range.
to
to:
Date
Defined in: interfaces/types.ts:94
Exclusive end of the range.