@microsoft/decorators 1.18.0-beta.1 → 1.18.0-beta.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.
- package/dist/f97266fb-ccb7-430e-9384-4124d05295d3.manifest.json +1 -1
- package/dist/index-internal-beta.d.ts +3 -3
- package/dist/index-internal-public.d.ts +3 -3
- package/dist/index-internal.d.ts +3 -3
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/override.js +4 -3
- package/lib-commonjs/sealed.js +1 -0
- package/lib-commonjs/virtual.js +3 -2
- package/package.json +3 -2
- /package/dist/{decorators_none_22792d2017b303526bd0.js → decorators_none_e8c9710e498735ec97e9.js} +0 -0
|
@@ -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
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
44
|
+
export declare function virtual(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
|
|
45
45
|
|
|
46
46
|
export { }
|
package/dist/index-internal.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
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:
|
|
44
|
+
export declare function virtual(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
|
|
45
45
|
|
|
46
46
|
export { }
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib-commonjs/override.js
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
}
|
package/lib-commonjs/sealed.js
CHANGED
|
@@ -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.
|
package/lib-commonjs/virtual.js
CHANGED
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "1.18.0-beta.2",
|
|
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.
|
|
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": {
|
/package/dist/{decorators_none_22792d2017b303526bd0.js → decorators_none_e8c9710e498735ec97e9.js}
RENAMED
|
File without changes
|