Skip to content

Commit

Permalink
Move RoundToNearestMinutesOptions back to types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
leshakoss committed Jul 21, 2022
1 parent b78bef0 commit a2a8d82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/roundToNearestMinutes/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import type { RoundToNearestMinutesOptions } from '../types'
import toDate from '../toDate/index'
import type { RoundingMethod } from '../types'
import { getRoundingMethod } from '../_lib/roundingMethods'
import toInteger from '../_lib/toInteger/index'

export interface RoundToNearestMinutesOptions {
nearestTo?: number
roundingMethod?: RoundingMethod
}

/**
* @name roundToNearestMinutes
* @category Minute Helpers
Expand Down
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ export interface FormatDurationOptions {
delimiter?: string
}

export interface RoundToNearestMinutesOptions {
nearestTo?: number
roundingMethod?: RoundingMethod
}

export interface AreIntervalsOverlappingOptions {
inclusive?: boolean
}
Expand Down

0 comments on commit a2a8d82

Please sign in to comment.