@midwayjs/decorator 3.1.6 → 3.3.4
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,7 +1,7 @@
|
|
|
1
1
|
import { FrameworkType } from '../../';
|
|
2
2
|
export declare function Plugin(identifier?: string): PropertyDecorator;
|
|
3
3
|
export declare function Config(identifier?: string): PropertyDecorator;
|
|
4
|
-
export declare function App(
|
|
4
|
+
export declare function App(typeOrNamespace?: FrameworkType | string): PropertyDecorator;
|
|
5
5
|
export declare function Logger(identifier?: string): PropertyDecorator;
|
|
6
6
|
export declare function ApplicationContext(): PropertyDecorator;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,9 +14,9 @@ function Config(identifier) {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
exports.Config = Config;
|
|
17
|
-
function App(
|
|
17
|
+
function App(typeOrNamespace) {
|
|
18
18
|
return (0, __1.createCustomPropertyDecorator)(__1.APPLICATION_KEY, {
|
|
19
|
-
type,
|
|
19
|
+
type: typeOrNamespace,
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
exports.App = App;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/decorator",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "definition decorator for midway project",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "0c2785a87217f57a184a661c71b1d9562af02242"
|
|
40
40
|
}
|