@appsemble/types 0.32.1-test.17 → 0.32.1
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/README.md +3 -3
- package/index.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Types
|
|
2
2
|
|
|
3
3
|
> Reusable TypeScript types
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/types)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.32.1)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -26,5 +26,5 @@ not guaranteed.
|
|
|
26
26
|
|
|
27
27
|
## License
|
|
28
28
|
|
|
29
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1
|
|
29
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1/LICENSE.md) ©
|
|
30
30
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -781,6 +781,18 @@ export interface Remappers {
|
|
|
781
781
|
* undefined -> false
|
|
782
782
|
*/
|
|
783
783
|
defined: Remapper;
|
|
784
|
+
/**
|
|
785
|
+
* Perform the specified mathematical operation on the two numbers.
|
|
786
|
+
*
|
|
787
|
+
* Where the position matters, `a` is the first input.
|
|
788
|
+
*
|
|
789
|
+
* If one of the inputs is not a number, or the operation is invalid, `-1` is returned.
|
|
790
|
+
*/
|
|
791
|
+
maths: {
|
|
792
|
+
a: Remapper;
|
|
793
|
+
b: Remapper;
|
|
794
|
+
operation: 'add' | 'divide' | 'mod' | 'multiply' | 'subtract';
|
|
795
|
+
};
|
|
784
796
|
}
|
|
785
797
|
export type ObjectRemapper = RequireExactlyOne<Remappers>;
|
|
786
798
|
export type ArrayRemapper = (ArrayRemapper | ObjectRemapper)[];
|