Skip to content

Commit

Permalink
fix: apply lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jan 26, 2024
1 parent ceec7e7 commit a179ad7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import * as time from "@softwareventures/time";
import {hasProperty} from "unknown";
import isIntegerInRange from "is-integer-in-range";
import isInteger = require("is-integer");
import {Comparator, Comparison} from "@softwareventures/ordered";
import {JsDate} from "./js-date";
import type {Comparator} from "@softwareventures/ordered";
import {Comparison} from "@softwareventures/ordered";
import {mapNullable} from "@softwareventures/nullable";
import {JsDate} from "./js-date";

/** An abstract date and time with no associated timezone.
*
Expand Down Expand Up @@ -553,7 +554,9 @@ export const earliestDateTime = earliest;
/** Compares two {@link DateTime}s and returns the earlier of the two.
*
* Curried variant of {@link earliest}. */
export function earliestFn<T extends DateTimeOptions, U extends DateTimeOptions>(b: U): (a: T) => T | U {
export function earliestFn<T extends DateTimeOptions, U extends DateTimeOptions>(
b: U
): (a: T) => T | U {
return a => earliest(a, b);
}

Expand All @@ -576,7 +579,9 @@ export const latestDateTime = latest;
/** Compares two {@link DateTime}s and returns the later of the two.
*
* Curried variant of {@link latest}. */
export function latestFn<T extends DateTimeOptions, U extends DateTimeOptions>(b: U): (a: T) => T | U {
export function latestFn<T extends DateTimeOptions, U extends DateTimeOptions>(
b: U
): (a: T) => T | U {
return a => latest(a, b);
}

Expand Down Expand Up @@ -674,4 +679,4 @@ export function parseIso8601(text: string): DateTime | null {
*
* Alias of {@link parseIso8601}, useful for disambiguation from similar
* functions that operate on other date/time types. */
export const parseDateTimeIso8601 = parseIso8601;
export const parseDateTimeIso8601 = parseIso8601;

0 comments on commit a179ad7

Please sign in to comment.