@thisisagile/easy 10.5.14 → 10.5.15

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.
@@ -1,6 +1,5 @@
1
1
  import { List } from './List';
2
- import { ArrayLike } from './Array';
3
2
  export declare type TotalList<T> = List<T> & {
4
3
  total?: number;
5
4
  };
6
- export declare const toTotalList: <T>(items?: ArrayLike<T> | undefined, total?: number | undefined) => TotalList<T>;
5
+ export declare const toTotalList: <T>(items?: T[] | undefined, total?: number | undefined) => TotalList<T>;
@@ -1 +1 @@
1
- {"version":3,"file":"TotalList.js","sourceRoot":"","sources":["../../src/types/TotalList.ts"],"names":[],"mappings":";;;AAAA,iCAAsC;AAK/B,MAAM,WAAW,GAAG,CAAI,KAAoB,EAAE,KAAc,EAAgB,EAAE;IACnF,MAAM,IAAI,GAAG,IAAA,aAAM,EAAI,GAAG,KAAK,IAAI,EAAE,CAAC,CAAC;IACtC,IAAY,CAAC,KAAK,GAAG,KAAK,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB"}
1
+ {"version":3,"file":"TotalList.js","sourceRoot":"","sources":["../../src/types/TotalList.ts"],"names":[],"mappings":";;;AAAA,iCAAsC;AAI/B,MAAM,WAAW,GAAG,CAAI,KAAW,EAAE,KAAc,EAAgB,EAAE;IAC1E,MAAM,IAAI,GAAG,IAAA,aAAM,EAAI,GAAG,KAAK,IAAI,EAAE,CAAC,CAAC;IACtC,IAAY,CAAC,KAAK,GAAG,KAAK,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisisagile/easy",
3
- "version": "10.5.14",
3
+ "version": "10.5.15",
4
4
  "description": "Straightforward library for building domain-driven microservice architectures",
5
5
  "author": "Sander Hoogendoorn",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
- "@thisisagile/easy-test": "10.5.14",
34
+ "@thisisagile/easy-test": "10.5.15",
35
35
  "@types/form-urlencoded": "^4.4.0",
36
36
  "@types/jsonwebtoken": "^8.5.8",
37
37
  "@types/validator": "^13.7.2"
@@ -1,9 +1,8 @@
1
1
  import { List, toList } from './List';
2
- import { ArrayLike } from './Array';
3
2
 
4
3
  export type TotalList<T> = List<T> & { total?: number };
5
4
 
6
- export const toTotalList = <T>(items?: ArrayLike<T>, total?: number): TotalList<T> => {
5
+ export const toTotalList = <T>(items?: T[], total?: number): TotalList<T> => {
7
6
  const list = toList<T>(...items ?? []);
8
7
  (list as any).total = total;
9
8
  return list;