This commit is contained in:
parent
1ceb15b5ff
commit
fff6d7b296
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
||||
/coverage/
|
||||
*.log
|
||||
*.d.ts
|
||||
!time.d.ts
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sapphirecode/consts",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"main": "index.js",
|
||||
"author": {
|
||||
"name": "Timo Hocker",
|
||||
|
18
time.d.ts
vendored
Normal file
18
time.d.ts
vendored
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user