@tsed/core 7.83.0 → 8.0.0-alpha.2

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.
@@ -8,7 +8,7 @@ exports.isMethodDescriptor = exports.descriptorOf = void 0;
8
8
  * @returns {PropertyDescriptor}
9
9
  */
10
10
  function descriptorOf(target, propertyKey) {
11
- return Object.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);
11
+ return Reflect.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);
12
12
  }
13
13
  exports.descriptorOf = descriptorOf;
14
14
  function isMethodDescriptor(target, propertyKey) {
@@ -1 +1 @@
1
- {"version":3,"file":"descriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/descriptorOf.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,MAAW,EAAE,WAA4B;IACpE,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,WAAW,CAAE,CAAC;AAC/F,CAAC;AAFD,oCAEC;AAED,SAAgB,kBAAkB,CAAC,MAAW,EAAE,WAA4B;IAC1E,OAAO,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;AAClD,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"descriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/descriptorOf.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,YAAY,CAAC,MAAW,EAAE,WAA4B;IACpE,OAAO,OAAO,CAAC,wBAAwB,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,WAAW,CAAE,CAAC;AAChG,CAAC;AAFD,oCAEC;AAED,SAAgB,kBAAkB,CAAC,MAAW,EAAE,WAA4B;IAC1E,OAAO,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;AAClD,CAAC;AAFD,gDAEC"}
@@ -5,7 +5,7 @@
5
5
  * @returns {PropertyDescriptor}
6
6
  */
7
7
  export function descriptorOf(target, propertyKey) {
8
- return Object.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);
8
+ return Reflect.getOwnPropertyDescriptor((target && target.prototype) || target, propertyKey);
9
9
  }
10
10
  export function isMethodDescriptor(target, propertyKey) {
11
11
  return descriptorOf(target, propertyKey)?.value;
@@ -1 +1 @@
1
- {"version":3,"file":"descriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/descriptorOf.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,MAAW,EAAE,WAA4B;IACpE,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,WAAW,CAAE,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAW,EAAE,WAA4B;IAC1E,OAAO,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"descriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/descriptorOf.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,MAAW,EAAE,WAA4B;IACpE,OAAO,OAAO,CAAC,wBAAwB,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,WAAW,CAAE,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAW,EAAE,WAA4B;IAC1E,OAAO,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC;AAClD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An example of a `Type` is `MyCustomComponent` filters, which in JavaScript is be represented by
2
+ * An example of a `Type` is `MyCustomComponent` filters, which in JavaScript is represented by
3
3
  * the `MyCustomComponent` constructor function.
4
4
  */
5
5
  /**
@@ -9,3 +9,6 @@ export interface Type<T = any> extends Function {
9
9
  new (...args: any[]): T;
10
10
  }
11
11
  export declare const Type: FunctionConstructor;
12
+ export interface AbstractType<T> extends Function {
13
+ prototype: T;
14
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * An example of a `Type` is `MyCustomComponent` filters, which in JavaScript is be represented by
2
+ * An example of a `Type` is `MyCustomComponent` filters, which in JavaScript is represented by
3
3
  * the `MyCustomComponent` constructor function.
4
4
  */
5
5
  /**
@@ -9,3 +9,6 @@ export interface Type<T = any> extends Function {
9
9
  new (...args: any[]): T;
10
10
  }
11
11
  export declare const Type: FunctionConstructor;
12
+ export interface AbstractType<T> extends Function {
13
+ prototype: T;
14
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/core",
3
3
  "description": "Core module for Ts.ED Framework",
4
4
  "type": "commonjs",
5
- "version": "7.83.0",
5
+ "version": "8.0.0-alpha.2",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -30,10 +30,10 @@
30
30
  "tslib": "2.6.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@tsed/barrels": "7.83.0",
33
+ "@tsed/barrels": "8.0.0-alpha.2",
34
34
  "@tsed/monorepo-utils": "2.3.5",
35
- "@tsed/typescript": "7.83.0",
36
- "@tsed/vitest": "7.83.0",
35
+ "@tsed/typescript": "8.0.0-alpha.2",
36
+ "@tsed/vitest": "8.0.0-alpha.2",
37
37
  "@vitest/coverage-v8": "^2.0.5",
38
38
  "eslint": "^8.57.0",
39
39
  "typescript": "4.9.5",
@@ -48,5 +48,8 @@
48
48
  },
49
49
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/core",
50
50
  "author": "Romain Lenzotti",
51
- "license": "MIT"
51
+ "license": "MIT",
52
+ "publishConfig": {
53
+ "tag": "alpha"
54
+ }
52
55
  }