generated from RebeccaStevens/template-typescript-node-package
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Unit Functions Pow and Root
these are renamed versions of MultiplyUnitExponents and DivideUnitExponents which have now been deprecated.
- Loading branch information
1 parent
2fd3baa
commit ae679dc
Showing
7 changed files
with
155 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { type Exponent } from "./exponents"; | ||
import { type Pow, type Root } from "./units"; | ||
|
||
/** | ||
* Multiple the exponent values of a unit by a number. | ||
* | ||
* @deprecated Use {@link Pow} instead. | ||
*/ | ||
export type MultiplyUnitExponents<T extends number, E extends Exponent> = Pow< | ||
T, | ||
E | ||
>; | ||
|
||
/** | ||
* Divide the exponent values of a unit by a number. | ||
* | ||
* @deprecated Use {@link Root} instead. | ||
*/ | ||
export type DivideUnitExponents<T extends number, E extends Exponent> = Root< | ||
T, | ||
E | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.