vona-module-a-static 5.0.19 → 5.0.20
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,9 +1,7 @@
|
|
|
1
1
|
import { Meta } from 'vona-module-a-meta';
|
|
2
2
|
import { BeanStaticBase } from 'vona-module-a-static';
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
get(path: 'path'): string;
|
|
6
|
-
}
|
|
4
|
+
export type Type<%=argv.beanNameCapitalize%>GetPath = never;
|
|
7
5
|
|
|
8
6
|
@Meta()
|
|
9
|
-
export class Meta<%=argv.beanNameCapitalize%> extends BeanStaticBase {}
|
|
7
|
+
export class Meta<%=argv.beanNameCapitalize%> extends BeanStaticBase<Type<%=argv.beanNameCapitalize%>GetPath> {}
|
package/dist/index.js
CHANGED
|
@@ -152,12 +152,8 @@ let ScopeModuleAStatic = (_dec = Scope(), _dec2 = BeanInfo({
|
|
|
152
152
|
/** scope: end */
|
|
153
153
|
|
|
154
154
|
class BeanStaticBase extends BeanBase {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return path => {
|
|
158
|
-
return this.app.util.combineStaticPath(path, this[SymbolModuleBelong]);
|
|
159
|
-
};
|
|
160
|
-
}
|
|
155
|
+
get(path) {
|
|
156
|
+
return this.app.util.combineStaticPath(path, this[SymbolModuleBelong]);
|
|
161
157
|
}
|
|
162
158
|
}
|
|
163
159
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { BeanBase } from 'vona';
|
|
2
|
-
export declare class BeanStaticBase extends BeanBase {
|
|
3
|
-
|
|
2
|
+
export declare class BeanStaticBase<TypeStaticGetPath> extends BeanBase {
|
|
3
|
+
get(path: TypeStaticGetPath): string;
|
|
4
4
|
}
|