@lbd-sh/date-tz 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/date-tz.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare class DateTz implements IDateTz {
19
19
  diff(other: IDateTz, unit?: DateTzDiffUnit, asFloat?: boolean): number;
20
20
  startOf(unit: DateTzGranularity): this;
21
21
  endOf(unit: DateTzGranularity): this;
22
- clone(): DateTz;
22
+ clone(): IDateTz;
23
23
  toJSDate(): Date;
24
24
  toISOString(): string;
25
25
  toISO(): string;
@@ -61,8 +61,8 @@ export declare class DateTz implements IDateTz {
61
61
  set(value: number, unit: 'year' | 'month' | 'day' | 'hour' | 'minute'): this;
62
62
  private isLeapYear;
63
63
  private daysInYear;
64
- static parse(dateString: string, pattern?: string, tz?: string): DateTz;
65
- static now(tz?: string): DateTz;
64
+ static parse(dateString: string, pattern?: string, tz?: string): IDateTz;
65
+ static now(tz?: string): IDateTz;
66
66
  get isDst(): boolean;
67
67
  get year(): number;
68
68
  get month(): number;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lbd-sh/date-tz",
3
3
  "displayName": "Date TZ",
4
4
  "engineStrict": false,
5
- "version": "1.0.17",
5
+ "version": "1.0.18",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [