ts-serializable 3.2.3 → 3.4.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,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { Serializable } from "../classes/Serializable.js";
2
3
  export const jsonObject = (settings, extend) => (target) => {
3
4
  if (extend === true) {
@@ -1,5 +1,4 @@
1
1
  export type AcceptedType = BooleanConstructor | DateConstructor | NumberConstructor | ObjectConstructor | StringConstructor | SymbolConstructor | (new (...args: unknown[]) => object) | null | void;
2
- interface IRecursiveArray<T> extends Array<IRecursiveArray<T> | T> {
3
- }
2
+ type IRecursiveArray<T> = (IRecursiveArray<T> | T)[];
4
3
  export type AcceptedTypes = AcceptedType | IRecursiveArray<AcceptedType>;
5
4
  export {};
@@ -1,3 +1,2 @@
1
- /* eslint-disable @stylistic/indent-binary-ops */
2
1
  /* eslint-disable @typescript-eslint/no-invalid-void-type */
3
2
  export {};
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "ts-serializable",
3
- "version": "3.2.3",
3
+ "version": "3.4.0",
4
4
  "author": "Eugene Labutin",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/LabEG/Serializable#readme",
7
- "description": "Serialization and deserializtion for classes",
7
+ "description": "Serialization and deserialization for classes",
8
8
  "main": "./dist/index.js",
9
9
  "type": "module",
10
10
  "typings": "./dist/index.d.ts",
@@ -17,11 +17,11 @@
17
17
  },
18
18
  "lint-staged": {
19
19
  "./(src|tests)/**/*.(ts|tsx|js|jsx)": [
20
- "eslint --fix -c .eslintrc.cjs --ext .tsx,.ts,.jsx,.js"
20
+ "eslint --fix"
21
21
  ]
22
22
  },
23
23
  "scripts": {
24
- "lint": "eslint --fix -c .eslintrc.cjs --ext .tsx,.ts,.jsx,.js ./src/ ./tests/",
24
+ "lint": "eslint --fix ./src/ ./tests/",
25
25
  "test": "mocha",
26
26
  "build": "tsc --project tsconfig.build.json && node ./dist/index.js",
27
27
  "prepublishOnly": "npm run lint && npm run build && npm run test",
@@ -32,20 +32,20 @@
32
32
  "reflect-metadata": ">=0.1.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@commitlint/cli": "^19.3.0",
36
- "@commitlint/config-conventional": "^19.2.2",
37
- "@favware/cliff-jumper": "^3.0.3",
38
- "@labeg/code-style": "^4.2.2",
39
- "@types/chai": "^4.3.16",
40
- "@types/mocha": "^10.0.6",
41
- "chai": "^5.1.1",
42
- "husky": "^9.0.11",
43
- "lint-staged": "^15.2.5",
44
- "mocha": "^10.4.0",
35
+ "@commitlint/cli": "^19.6.1",
36
+ "@commitlint/config-conventional": "^19.6.0",
37
+ "@favware/cliff-jumper": "^5.0.0",
38
+ "@labeg/code-style": "^5.3.2",
39
+ "@types/chai": "^5.0.1",
40
+ "@types/mocha": "^10.0.10",
41
+ "chai": "^5.1.2",
42
+ "husky": "^9.1.7",
43
+ "lint-staged": "^15.2.11",
44
+ "mocha": "^11.0.1",
45
45
  "reflect-metadata": "^0.2.2",
46
46
  "ts-node": "^10.9.2",
47
- "tsx": "^4.11.0",
48
- "typescript": "^5.4.5"
47
+ "tsx": "^4.19.2",
48
+ "typescript": "^5.7.2"
49
49
  },
50
50
  "keywords": [
51
51
  "serialization",