Same-day schedules created invalid workingHours (#3742)
* Same-day schedules created invalid workingHours * Uncomment logger * Previous version did not properly substract the days Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
1 parent
7776bbbf52
commit
87d4afea13
2 files changed
+44
-1
No files matched your search
Vendored
+10
@@ -5,3 +5,13 @@ export type Ensure<T, K extends keyof T> = Omit<T, K> & {
|
||||
|
||||
/** Makes selected props from a record optional */
|
||||
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
||||
|
||||
/** Get the union type of all the values in an object, array or array-like type `T` */
|
||||
export type ValuesType<T extends ReadonlyArray<unknown> | ArrayLike<unknown> | Record<unknown, unknown>> =
|
||||
T extends ReadonlyArray<unknown>
|
||||
? T[number]
|
||||
: T extends ArrayLike<unknown>
|
||||
? T[number]
|
||||
: T extends object
|
||||
? T[keyof T]
|
||||
: never;
|
||||
Reference in new issue
Block a user