@appsemble/types 0.20.17 → 0.20.19
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 +4 -4
- package/index.d.ts +16 -0
- package/index.ts +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.20.19)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -21,5 +21,5 @@ not guaranteed.
|
|
|
21
21
|
|
|
22
22
|
## License
|
|
23
23
|
|
|
24
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
24
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.19/LICENSE.md) ©
|
|
25
25
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -311,6 +311,22 @@ export interface Remappers {
|
|
|
311
311
|
* Returns nothing if array.map’s context isn’t set.
|
|
312
312
|
*/
|
|
313
313
|
array: 'index' | 'length';
|
|
314
|
+
/**
|
|
315
|
+
* Create a new array with an array of predefined remappers.
|
|
316
|
+
*/
|
|
317
|
+
'array.from': Remapper[];
|
|
318
|
+
/**
|
|
319
|
+
* Append new values to the end of an array.
|
|
320
|
+
*
|
|
321
|
+
* If the input is not an array an empty array is returned.
|
|
322
|
+
*/
|
|
323
|
+
'array.append': Remapper[];
|
|
324
|
+
/**
|
|
325
|
+
* Remove item(s) from an array given a predefined array of indices.
|
|
326
|
+
*
|
|
327
|
+
* If the input is not an array an empty array is returned.
|
|
328
|
+
*/
|
|
329
|
+
'array.omit': number[];
|
|
314
330
|
/**
|
|
315
331
|
* Create a new object given some predefined mapper keys.
|
|
316
332
|
*/
|
package/index.ts
CHANGED
|
@@ -365,6 +365,25 @@ export interface Remappers {
|
|
|
365
365
|
*/
|
|
366
366
|
array: 'index' | 'length';
|
|
367
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Create a new array with an array of predefined remappers.
|
|
370
|
+
*/
|
|
371
|
+
'array.from': Remapper[];
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Append new values to the end of an array.
|
|
375
|
+
*
|
|
376
|
+
* If the input is not an array an empty array is returned.
|
|
377
|
+
*/
|
|
378
|
+
'array.append': Remapper[];
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Remove item(s) from an array given a predefined array of indices.
|
|
382
|
+
*
|
|
383
|
+
* If the input is not an array an empty array is returned.
|
|
384
|
+
*/
|
|
385
|
+
'array.omit': number[];
|
|
386
|
+
|
|
368
387
|
/**
|
|
369
388
|
* Create a new object given some predefined mapper keys.
|
|
370
389
|
*/
|