tscommons-esm-models 1.0.0 → 2.0.0

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,5 +1,5 @@
1
1
  import { CommonsFixedDate, CommonsFixedDuration, TPrimative } from 'tscommons-esm-core';
2
2
  export interface ICommonsModel {
3
- [key: string]: TPrimative | string[] | Date | CommonsFixedDate | CommonsFixedDuration | undefined;
3
+ [key: string]: TPrimative | string[] | number[] | Date | CommonsFixedDate | CommonsFixedDuration | undefined;
4
4
  }
5
5
  export declare function isICommonsModel(test: unknown): test is ICommonsModel;
@@ -1,4 +1,4 @@
1
- import { CommonsFixedDate, commonsTypeIsDate, commonsTypeIsPrimative, commonsTypeIsPropertyObject, commonsTypeIsStringArray } from 'tscommons-esm-core';
1
+ import { CommonsFixedDate, commonsTypeIsDate, commonsTypeIsNumberArray, commonsTypeIsPrimative, commonsTypeIsPropertyObject, commonsTypeIsStringArray } from 'tscommons-esm-core';
2
2
  export function isICommonsModel(test) {
3
3
  if (!commonsTypeIsPropertyObject(test))
4
4
  return false;
@@ -9,6 +9,8 @@ export function isICommonsModel(test) {
9
9
  continue;
10
10
  if (commonsTypeIsStringArray(test[key]))
11
11
  continue;
12
+ if (commonsTypeIsNumberArray(test[key]))
13
+ continue;
12
14
  if (CommonsFixedDate.is(test[key]))
13
15
  continue;
14
16
  if (!commonsTypeIsPrimative(test[key]))
@@ -1 +1 @@
1
- {"version":3,"file":"icommons-model.mjs","sourceRoot":"","sources":["../../src/interfaces/icommons-model.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,iBAAiB,EACjB,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EAEzB,MAAM,oBAAoB,CAAC;AAM5B,MAAM,UAAU,eAAe,CAAC,IAAa;IAC5C,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAErD,KAAK,MAAM,GAAG,IAAI,MAAM,C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AAI,CAAC,GAAG,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IACtD,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tscommons-esm-models",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "tsc": "./node_modules/typescript/bin/tsc",