mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add missing return type
This commit is contained in:
@@ -24,7 +24,7 @@ import { clone } from 'lodash';
|
||||
*
|
||||
* The conversion is lifted straight from `ms`.
|
||||
*/
|
||||
export function adjustDate(date: Date, adjustment: string) {
|
||||
export function adjustDate(date: Date, adjustment: string): Date {
|
||||
date = clone(date);
|
||||
|
||||
const subtract = adjustment.startsWith('-');
|
||||
|
||||
Reference in New Issue
Block a user