@date-io/core
Advanced tools
Comparing version 2.9.0 to 2.9.2
@@ -17,2 +17,3 @@ const nodeResolve = require("rollup-plugin-node-resolve"); | ||
format: "esm", | ||
exports: "auto" | ||
}, | ||
@@ -27,2 +28,3 @@ plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })], | ||
format: "cjs", | ||
exports: "auto" | ||
}, | ||
@@ -29,0 +31,0 @@ plugins: [nodeResolve({ extensions }), typescriptPlugin({ typescript })], |
@@ -62,2 +62,13 @@ /** | ||
export type Unit = | ||
| "years" | ||
| "quarters" | ||
| "months" | ||
| "weeks" | ||
| "days" | ||
| "hours" | ||
| "minutes" | ||
| "seconds" | ||
| "milliseconds"; | ||
export interface IUtils<TDate> { | ||
@@ -84,3 +95,3 @@ formats: DateIOFormats<any>; | ||
isValid(value: any): boolean; | ||
getDiff(value: TDate, comparing: TDate | string): number; | ||
getDiff(value: TDate, comparing: TDate | string, unit?: Unit): number; | ||
isEqual(value: any, comparing: any): boolean; | ||
@@ -87,0 +98,0 @@ |
{ | ||
"name": "@date-io/core", | ||
"version": "2.9.0", | ||
"version": "2.9.2", | ||
"description": "Abstraction over common javascript date management libraries", | ||
@@ -34,3 +34,3 @@ "scripts": { | ||
}, | ||
"gitHead": "508a50423a17e207197c149814fe8087c5cef399" | ||
"gitHead": "4712b8927e09e6bb5378436783e15d48e174584d" | ||
} |
8884
161