Skip to main content
Glama
ssv445

Lorem Ipsum MCP Server

by ssv445
ScheduleInterval.ts5.13 kB
/** * @since 2.0.0 */ import type * as Duration from "./Duration.js" import * as internal from "./internal/schedule/interval.js" import type * as Option from "./Option.js" /** * @since 2.0.0 * @category symbols */ export const IntervalTypeId: unique symbol = internal.IntervalTypeId /** * @since 2.0.0 * @category symbols */ export type IntervalTypeId = typeof IntervalTypeId /** * An `Interval` represents an interval of time. Intervals can encompass all * time, or no time at all. * * @since 2.0.0 * @category models */ export interface Interval { readonly [IntervalTypeId]: IntervalTypeId readonly startMillis: number readonly endMillis: number } /** * Constructs a new interval from the two specified endpoints. If the start * endpoint greater than the end endpoint, then a zero size interval will be * returned. * * @since 2.0.0 * @category constructors */ export const make: (startMillis: number, endMillis: number) => Interval = internal.make /** * An `Interval` of zero-width. * * @since 2.0.0 * @category constructors */ export const empty: Interval = internal.empty /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ export const lessThan: { /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => boolean /** * Returns `true` if this `Interval` is less than `that` interval, `false` * otherwise. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): boolean } = internal.lessThan /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ export const min: { /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Returns the minimum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.min /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ export const max: { /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Returns the maximum of two `Interval`s. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.max /** * Returns `true` if the specified `Interval` is empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ export const isEmpty: (self: Interval) => boolean = internal.isEmpty /** * Returns `true` if the specified `Interval` is non-empty, `false` otherwise. * * @since 2.0.0 * @category ordering */ export const isNonEmpty: (self: Interval) => boolean = internal.isNonEmpty /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ export const intersect: { /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ (that: Interval): (self: Interval) => Interval /** * Computes a new `Interval` which is the intersection of this `Interval` and * that `Interval`. * * @since 2.0.0 * @category ordering */ (self: Interval, that: Interval): Interval } = internal.intersect /** * Calculates the size of the `Interval` as the `Duration` from the start of the * interval to the end of the interval. * * @since 2.0.0 * @category getters */ export const size: (self: Interval) => Duration.Duration = internal.size /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ export const union: { /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ (that: Interval): (self: Interval) => Option.Option<Interval> /** * Computes a new `Interval` which is the union of this `Interval` and that * `Interval` as a `Some`, otherwise returns `None` if the two intervals cannot * form a union. * * @since 2.0.0 * @category utils */ (self: Interval, that: Interval): Option.Option<Interval> } = internal.union /** * Construct an `Interval` that includes all time equal to and after the * specified start time. * * @since 2.0.0 * @category constructors */ export const after: (startMilliseconds: number) => Interval = internal.after /** * Construct an `Interval` that includes all time equal to and before the * specified end time. * * @category constructors * @since 2.0.0 */ export const before: (endMilliseconds: number) => Interval = internal.before

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssv445/lorem-ipsum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server