@microsoft/decorators 1.18.0-beta.1 → 1.18.0-beta.3

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.
@@ -12,7 +12,7 @@
12
12
  "scriptResources": {
13
13
  "decorators": {
14
14
  "type": "path",
15
- "path": "decorators_none_22792d2017b303526bd0.js"
15
+ "path": "decorators_none_e8c9710e498735ec97e9.js"
16
16
  }
17
17
  }
18
18
  }
@@ -12,14 +12,14 @@
12
12
 
13
13
  /**
14
14
  * This decorator is applied to a class's member function or property.
15
- * It indicates that the definition overrides another defintion (of the same name)
15
+ * It indicates that the definition overrides another definition (of the same name)
16
16
  * from the base class. The base class definition must be marked as \@virtual.
17
17
  * This decorator is currently used for documentation purposes only.
18
18
  * In the future, it may be enforced at runtime.
19
19
  *
20
20
  * @public
21
21
  */
22
- export declare function override(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
22
+ export declare function override(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
23
23
 
24
24
  /**
25
25
  * This decorator is applied to a class (but NOT member function or property).
@@ -41,6 +41,6 @@ export declare function sealed(target: Function): void;
41
41
  *
42
42
  * @public
43
43
  */
44
- export declare function virtual(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
44
+ export declare function virtual(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
45
45
 
46
46
  export { }
@@ -12,14 +12,14 @@
12
12
 
13
13
  /**
14
14
  * This decorator is applied to a class's member function or property.
15
- * It indicates that the definition overrides another defintion (of the same name)
15
+ * It indicates that the definition overrides another definition (of the same name)
16
16
  * from the base class. The base class definition must be marked as \@virtual.
17
17
  * This decorator is currently used for documentation purposes only.
18
18
  * In the future, it may be enforced at runtime.
19
19
  *
20
20
  * @public
21
21
  */
22
- export declare function override(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
22
+ export declare function override(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
23
23
 
24
24
  /**
25
25
  * This decorator is applied to a class (but NOT member function or property).
@@ -41,6 +41,6 @@ export declare function sealed(target: Function): void;
41
41
  *
42
42
  * @public
43
43
  */
44
- export declare function virtual(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
44
+ export declare function virtual(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
45
45
 
46
46
  export { }
@@ -12,14 +12,14 @@
12
12
 
13
13
  /**
14
14
  * This decorator is applied to a class's member function or property.
15
- * It indicates that the definition overrides another defintion (of the same name)
15
+ * It indicates that the definition overrides another definition (of the same name)
16
16
  * from the base class. The base class definition must be marked as \@virtual.
17
17
  * This decorator is currently used for documentation purposes only.
18
18
  * In the future, it may be enforced at runtime.
19
19
  *
20
20
  * @public
21
21
  */
22
- export declare function override(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
22
+ export declare function override(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
23
23
 
24
24
  /**
25
25
  * This decorator is applied to a class (but NOT member function or property).
@@ -41,6 +41,6 @@ export declare function sealed(target: Function): void;
41
41
  *
42
42
  * @public
43
43
  */
44
- export declare function virtual(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
44
+ export declare function virtual(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
45
45
 
46
46
  export { }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.35.1"
8
+ "packageVersion": "7.36.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,17 +1,18 @@
1
1
  "use strict";
2
- // tslint:disable:no-any
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.override = void 0;
5
4
  /**
6
5
  * This decorator is applied to a class's member function or property.
7
- * It indicates that the definition overrides another defintion (of the same name)
6
+ * It indicates that the definition overrides another definition (of the same name)
8
7
  * from the base class. The base class definition must be marked as \@virtual.
9
8
  * This decorator is currently used for documentation purposes only.
10
9
  * In the future, it may be enforced at runtime.
11
10
  *
12
11
  * @public
13
12
  */
14
- function override(target, propertyKey, descriptor) {
13
+ function override(target, propertyKey,
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
+ descriptor) {
15
16
  // Eventually we may implement runtime validation (e.g. in DEBUG builds)
16
17
  // but currently this decorator is only used by the build tools.
17
18
  }
@@ -9,6 +9,7 @@ exports.sealed = void 0;
9
9
  *
10
10
  * @public
11
11
  */
12
+ // eslint-disable-next-line @typescript-eslint/ban-types
12
13
  function sealed(target) {
13
14
  // Eventually we may implement runtime validation (e.g. in DEBUG builds)
14
15
  // but currently this decorator is only used by the build tools.
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // tslint:disable:no-any
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.virtual = void 0;
5
4
  /**
@@ -12,7 +11,9 @@ exports.virtual = void 0;
12
11
  *
13
12
  * @public
14
13
  */
15
- function virtual(target, propertyKey, descriptor) {
14
+ function virtual(target, propertyKey,
15
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
+ descriptor) {
16
17
  // Eventually we may implement runtime validation (e.g. in DEBUG builds)
17
18
  // but currently this decorator is only used by the build tools.
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/decorators",
3
- "version": "1.18.0-beta.1",
3
+ "version": "1.18.0-beta.3",
4
4
  "description": "A very conservative set of decorators for TypeScript projects",
5
5
  "license": "https://aka.ms/spfx/license",
6
6
  "homepage": "http://aka.ms/spfx",
@@ -11,7 +11,8 @@
11
11
  "tslib": "2.3.1"
12
12
  },
13
13
  "devDependencies": {
14
- "@rushstack/heft": "0.51.0",
14
+ "@rushstack/heft": "0.56.0",
15
+ "eslint": "8.7.0",
15
16
  "@ms/spfx-internal-web-build-next-rig": "0.1.0"
16
17
  },
17
18
  "engines": {