@lou.codes/types
Version:
🏷️ Lou's Code shared types
17 lines (16 loc) • 465 B
TypeScript
import type { Enumerate } from "./Enumerate.js";
/**
* ISO seconds values in number format (from `0` to `59`).
*
* @category Date
* @remarks
* Stricter than `number` type for seconds values, limited to valid values from
* `0` to `59`, and giving type errors otherwise.
* @example
* ```typescript
* const seconds: Iterable<Seconds> = [0, 30, 59];
* ```
* @see [Date](https://mdn.io/Date)
* @see {@link Enumerate}
*/
export type Seconds = Enumerate<59>;