import * as check from "../../../sync/check/date"; export function isPotentiallyUnsafeDate (mixed : any) : mixed is Date { return check.checkPotentiallyUnsafeDate(mixed) === undefined; } export function isValidDate (mixed : any) : mixed is Date { return check.checkValidDate(mixed) === undefined; } export function isBefore (mixed : any, x : Date) : mixed is Date { return check.checkBefore(mixed, x) === undefined; } export function isAfter (mixed : any, x : Date) : mixed is Date { return check.checkAfter(mixed, x) === undefined; } export function isBeforeOrAt (mixed : any, x : Date) : mixed is Date { return check.checkBeforeOrAt(mixed, x) === undefined; } export function isAfterOrAt (mixed : any, x : Date) : mixed is Date { return check.checkAfterOrAt(mixed, x) === undefined; } export function isRange (mixed : any, args : { min? : Date, max? : Date }) : mixed is Date { return check.checkRange(mixed, args) === undefined; }