fix time definitions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Timo Hocker 2021-01-15 19:38:14 +01:00
parent 1ceb15b5ff
commit fff6d7b296
3 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/coverage/ /coverage/
*.log *.log
*.d.ts *.d.ts
!time.d.ts

View File

@ -1,6 +1,6 @@
{ {
"name": "@sapphirecode/consts", "name": "@sapphirecode/consts",
"version": "1.2.1", "version": "1.2.2",
"main": "index.js", "main": "index.js",
"author": { "author": {
"name": "Timo Hocker", "name": "Timo Hocker",

18
time.d.ts vendored Normal file
View File

@ -0,0 +1,18 @@
declare interface TimeBase {
ns: number;
us: number;
ms: number;
second: number;
minute: number;
hour: number;
day: number;
week: number;
month: (m: any, y: any) => number;
year: (y: any) => number;
}
export function base(second?: number): TimeBase;
export declare const base_s: TimeBase;
export declare const base_ms: TimeBase;
export declare const base_us: TimeBase;
export declare const base_ns: TimeBase;