Skip to content

Commit

Permalink
* fix some type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
o-murphy committed Dec 29, 2023
1 parent 7167744 commit 9c3b066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ function unitTypeCoerce(
instance: (number|AbstractUnit),
expectedClass: (typeof AbstractUnit | any),
defaultUnit: Unit
): (AbstractUnit|number) {
): any {
if (instance instanceof expectedClass) {
// If the instance is already of the expected class type, return it.
return instance;
Expand Down

0 comments on commit 9c3b066

Please sign in to comment.