Skip to content

Commit

Permalink
Fixed lost types at overloaded methods & updated version number
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDuwaer committed Jul 12, 2021
1 parent 0e10582 commit a1efd4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "globol",
"version": "0.4.0",
"version": "0.4.1",
"description": "Javascript/Typescript date/time as it should be: immutable, fluent, multi-zone, intuitive. Inspired by the masterful java.time library which suddenly made dates easy.",
"keywords": [
"time",
Expand Down
6 changes: 3 additions & 3 deletions src/Instant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ export class Instant
return new Instant(this.epochMilli + duration.asMillis);
}

public atZone(zoneIdString: ZoneIdString)
public atZone(zoneId: ZoneId)
public atZone(arg: ZoneId | ZoneIdString)
public atZone(zoneIdString: ZoneIdString): ZonedDateTime
public atZone(zoneId: ZoneId): ZonedDateTime
public atZone(arg: ZoneId | ZoneIdString): ZonedDateTime
{
return new ZonedDateTime(this.toJS(), toZoneId(arg));
}
Expand Down
6 changes: 3 additions & 3 deletions src/LocalDateTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export class LocalDateTime
.atZone(ZoneId.browser());
}

public atZone(zoneIdString: ZoneIdString)
public atZone(zoneId: ZoneId)
public atZone(arg: ZoneId | ZoneIdString)
public atZone(zoneIdString: ZoneIdString): ZonedDateTime
public atZone(zoneId: ZoneId): ZonedDateTime
public atZone(arg: ZoneId | ZoneIdString): ZonedDateTime
{
const zoneId = toZoneId(arg);
const zonedMoment = this.toZonedMoment(zoneId);
Expand Down

0 comments on commit a1efd4a

Please sign in to comment.