@platform/util.value
Advanced tools
Comparing version 0.6.1 to 0.6.2
/// <reference types="node" /> | ||
import { Dayjs, ConfigType } from 'dayjs'; | ||
import { IDuration, TimeUnit } from '@platform/types'; | ||
export { IDuration, TimeUnit }; | ||
export declare type TimeDelay<T = any> = (msecs: number, callback?: () => T) => TimeDelayPromise<T>; | ||
@@ -34,11 +36,2 @@ export declare type TimeDelayPromise<T = any> = Promise<T> & { | ||
}; | ||
export declare type IDuration = { | ||
msec: number; | ||
sec: number; | ||
min: number; | ||
hour: number; | ||
day: number; | ||
toString(unit?: TimerUnit): string; | ||
}; | ||
export declare type TimerUnit = 'msec' | 'ms' | 'sec' | 's' | 'min' | 'm' | 'hour' | 'h' | 'day' | 'd'; | ||
export declare type ITimer = { | ||
@@ -45,0 +38,0 @@ startedAt: Date; |
{ | ||
"name": "@platform/util.value", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Helpers for working with, transforming, and formatting values.", | ||
@@ -16,3 +16,3 @@ "main": "lib/index", | ||
"@platform/libs": "0.1.5", | ||
"@platform/types": "0.2.0", | ||
"@platform/types": "0.2.1", | ||
"@platform/util.is": "0.0.99", | ||
@@ -19,0 +19,0 @@ "@types/semver": "6.2.0", |
157326
4217
+ Added@platform/types@0.2.1(transitive)
- Removed@platform/types@0.2.0(transitive)
Updated@platform/types@0.2.1