@borodindmitriy/base-code
Advanced tools
| import { Moment } from "moment"; | ||
| export declare function overlaps(x_0: Moment, x_1: Moment, y_0: Moment, y_1: Moment): boolean; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| function overlaps(x_0, x_1, y_0, y_1) { | ||
| let hasOverlaps = false; | ||
| if (y_0.isSameOrAfter(x_0) && y_0.isSameOrBefore(x_1)) { | ||
| hasOverlaps = true; | ||
| } | ||
| if (y_1.isSameOrAfter(x_0) && y_1.isSameOrBefore(x_1)) { | ||
| hasOverlaps = true; | ||
| } | ||
| return hasOverlaps; | ||
| } | ||
| exports.overlaps = overlaps; |
+1
-0
@@ -19,1 +19,2 @@ export { isString } from "./utils/isType"; | ||
| export { uploadHTML } from "./utils/uploadHTML"; | ||
| export { overlaps } from "./utils/overlaps"; |
+2
-0
@@ -39,1 +39,3 @@ "use strict"; | ||
| exports.uploadHTML = uploadHTML_1.uploadHTML; | ||
| var overlaps_1 = require("./utils/overlaps"); | ||
| exports.overlaps = overlaps_1.overlaps; |
@@ -1,2 +0,2 @@ | ||
| import * as moment from "moment"; | ||
| export declare function dateOnly(date: moment.Moment): moment.Moment; | ||
| import { Moment } from "moment"; | ||
| export declare function dateOnly(date: Moment): Moment; |
@@ -1,2 +0,2 @@ | ||
| import * as moment from "moment"; | ||
| export declare function minutesToTimeOnly(minutes: number): moment.Moment; | ||
| import { Moment } from "moment"; | ||
| export declare function minutesToTimeOnly(minutes: number): Moment; |
@@ -1,2 +0,2 @@ | ||
| import * as moment from "moment"; | ||
| export declare function timeOnly(date: moment.Moment): moment.Moment; | ||
| import { Moment } from "moment"; | ||
| export declare function timeOnly(date: Moment): Moment; |
+3
-4
| { | ||
| "name": "@borodindmitriy/base-code", | ||
| "description": "Common classes's library.", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "engines": { | ||
@@ -9,2 +9,4 @@ "node": ">=8", | ||
| }, | ||
| "main": "lib", | ||
| "types": "lib", | ||
| "files": [ | ||
@@ -46,3 +48,2 @@ "lib" | ||
| "@types/node": "9.6.6", | ||
| "@types/twix": "0.6.34", | ||
| "bson": "2.0.5", | ||
@@ -60,3 +61,2 @@ "chai": "4.1.2", | ||
| "tslint-no-circular-imports": "0.3.0", | ||
| "twix": "1.2.1", | ||
| "typescript": "2.8.3" | ||
@@ -67,3 +67,2 @@ }, | ||
| "tslib": ">=1.9.0", | ||
| "twix": ">=1.2.1", | ||
| "bson": ">=2.0.5" | ||
@@ -70,0 +69,0 @@ }, |
18261
3.25%3
-25%17
-10.53%52
4%457
4.1%