lombok-typescript 0.7.0 → 0.8.0

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.
@@ -120,4 +120,20 @@ interface ProxyHooks {
120
120
  after?: (method: string, result: unknown) => void;
121
121
  }
122
122
 
123
- export { type AccessorsOptions as A, type ClassDecoratorLogic as C, type FieldDefaultsOptions as F, type HandlerOptions as H, type LogOptions as L, type MemoizeOptions as M, type ProxyHooks as P, type StateOptions as S, type TransitionOptions as T, type FlyweightOptions as a, CommandHistory as b, type FieldDecoratorLogic as c, type MethodDecoratorLogic as d, type ParameterDecoratorLogic as e, StrategyRegistry as f, createFromFactory as g, defineClassDecorator as h, defineFieldDecorator as i, defineMethodDecorator as j, defineParameterDecorator as k, getFactoryRegistry as l, getStrategyFromRegistry as m, getStrategyRegistry as n, listStrategies as o, registerStrategy as p, type AnyClass as q, registerFactory as r };
123
+ interface TemplateMethodOptions {
124
+ /** Template method name to generate or assign. Default `execute`. */
125
+ template?: string;
126
+ /** Hook step names in call order. */
127
+ steps: string[];
128
+ }
129
+
130
+ interface HookOptions {
131
+ name: string;
132
+ }
133
+
134
+ declare function getVisitableRegistry(): ReadonlyMap<string, AnyClass>;
135
+ interface VisitorOptions {
136
+ visitMethods: Record<string, string>;
137
+ }
138
+
139
+ export { type AccessorsOptions as A, type ClassDecoratorLogic as C, type FieldDefaultsOptions as F, type HandlerOptions as H, type LogOptions as L, type MemoizeOptions as M, type ProxyHooks as P, type StateOptions as S, type TemplateMethodOptions as T, type VisitorOptions as V, type FlyweightOptions as a, type HookOptions as b, type TransitionOptions as c, type AnyClass as d, CommandHistory as e, type FieldDecoratorLogic as f, type MethodDecoratorLogic as g, type ParameterDecoratorLogic as h, StrategyRegistry as i, createFromFactory as j, defineClassDecorator as k, defineFieldDecorator as l, defineMethodDecorator as m, defineParameterDecorator as n, getFactoryRegistry as o, getStrategyFromRegistry as p, getStrategyRegistry as q, getVisitableRegistry as r, listStrategies as s, registerFactory as t, registerStrategy as u };
@@ -120,4 +120,20 @@ interface ProxyHooks {
120
120
  after?: (method: string, result: unknown) => void;
121
121
  }
122
122
 
123
- export { type AccessorsOptions as A, type ClassDecoratorLogic as C, type FieldDefaultsOptions as F, type HandlerOptions as H, type LogOptions as L, type MemoizeOptions as M, type ProxyHooks as P, type StateOptions as S, type TransitionOptions as T, type FlyweightOptions as a, CommandHistory as b, type FieldDecoratorLogic as c, type MethodDecoratorLogic as d, type ParameterDecoratorLogic as e, StrategyRegistry as f, createFromFactory as g, defineClassDecorator as h, defineFieldDecorator as i, defineMethodDecorator as j, defineParameterDecorator as k, getFactoryRegistry as l, getStrategyFromRegistry as m, getStrategyRegistry as n, listStrategies as o, registerStrategy as p, type AnyClass as q, registerFactory as r };
123
+ interface TemplateMethodOptions {
124
+ /** Template method name to generate or assign. Default `execute`. */
125
+ template?: string;
126
+ /** Hook step names in call order. */
127
+ steps: string[];
128
+ }
129
+
130
+ interface HookOptions {
131
+ name: string;
132
+ }
133
+
134
+ declare function getVisitableRegistry(): ReadonlyMap<string, AnyClass>;
135
+ interface VisitorOptions {
136
+ visitMethods: Record<string, string>;
137
+ }
138
+
139
+ export { type AccessorsOptions as A, type ClassDecoratorLogic as C, type FieldDefaultsOptions as F, type HandlerOptions as H, type LogOptions as L, type MemoizeOptions as M, type ProxyHooks as P, type StateOptions as S, type TemplateMethodOptions as T, type VisitorOptions as V, type FlyweightOptions as a, type HookOptions as b, type TransitionOptions as c, type AnyClass as d, CommandHistory as e, type FieldDecoratorLogic as f, type MethodDecoratorLogic as g, type ParameterDecoratorLogic as h, StrategyRegistry as i, createFromFactory as j, defineClassDecorator as k, defineFieldDecorator as l, defineMethodDecorator as m, defineParameterDecorator as n, getFactoryRegistry as o, getStrategyFromRegistry as p, getStrategyRegistry as q, getVisitableRegistry as r, listStrategies as s, registerFactory as t, registerStrategy as u };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "lombok-typescript",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
7
- "description": "TypeScript structural pattern decorators: flyweight, proxy, and composite.",
7
+ "description": "TypeScript decorators for template method, visitor, abstract factory, and more.",
8
8
  "type": "module",
9
9
  "main": "./dist/index.cjs",
10
10
  "module": "./dist/index.js",