Skip to content

Commit

Permalink
Fix #55 valueOf() typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier Schouten committed Mar 18, 2021
1 parent 72c83e4 commit 724a536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ export class DateTime {
* The valueOf() method returns the primitive value of the specified object.
* @throws nothing
*/
public valueOf(): any {
public valueOf(): number {
return this.unixUtcMillis();
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export class Duration {
* The valueOf() method returns the primitive value of the specified object.
* @throws nothing
*/
public valueOf(): any {
public valueOf(): number {
return this.milliseconds();
}

Expand Down

0 comments on commit 724a536

Please sign in to comment.