vona-module-a-static 5.0.18 → 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 interface Meta<%=argv.beanNameCapitalize%> {
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
- __get__(prop) {
156
- if (prop === 'get') {
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
- protected __get__(prop: string): ((path: string) => string) | undefined;
2
+ export declare class BeanStaticBase<TypeStaticGetPath> extends BeanBase {
3
+ get(path: TypeStaticGetPath): string;
4
4
  }
@@ -1 +1,6 @@
1
1
  export declare const SymbolStaticGetFullPathInner: unique symbol;
2
+ declare module 'vona-module-a-meta' {
3
+ interface IMetaNameRecord {
4
+ static: never;
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-static",
3
3
  "type": "module",
4
- "version": "5.0.18",
4
+ "version": "5.0.20",
5
5
  "title": "a-static",
6
6
  "vonaModule": {
7
7
  "dependencies": {},