Skip to content

Commit aef3513

Browse files
committed
fix: add constructors to TypeScript declarations
1 parent 6a3d125 commit aef3513

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

common-js.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ declare module '@barchart/common-js/lang/Day' {
22
import DayFormatType from "@barchart/common-js/lang/DayFormatType";
33

44
export default class Day {
5-
format(): string;
5+
constructor(month: number, day: number, year: number);
66

77
get year(): number;
88
get month(): number;
99
get day(): number;
1010

1111
addDays(days: number, inverse?: boolean): Day;
1212

13+
format(): string;
14+
1315
static parse(value: string, type?: DayFormatType): Day;
1416
static fromDate(date: Date): Day;
1517
}
@@ -25,6 +27,8 @@ declare module '@barchart/common-js/lang/DayFormatType' {
2527

2628
declare module '@barchart/common-js/lang/Disposable' {
2729
export default class Disposable {
30+
constructor();
31+
2832
get disposed(): boolean;
2933

3034
dispose(): void;
@@ -33,6 +37,8 @@ declare module '@barchart/common-js/lang/Disposable' {
3337

3438
declare module '@barchart/common-js/lang/Timespan' {
3539
export default class Timespan {
40+
constructor(start: number, end: number);
41+
3642
get days(): number;
3743
get hours(): number;
3844
get minutes(): number;

0 commit comments

Comments
 (0)