lombok-typescript 0.6.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.
@@ -111,4 +111,29 @@ interface HandlerOptions {
111
111
  order: number;
112
112
  }
113
113
 
114
- 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 ParameterDecoratorLogic as P, type StateOptions as S, type TransitionOptions as T, CommandHistory as a, type FieldDecoratorLogic as b, type MethodDecoratorLogic as c, StrategyRegistry as d, createFromFactory as e, defineClassDecorator as f, defineFieldDecorator as g, defineMethodDecorator as h, defineParameterDecorator as i, getFactoryRegistry as j, getStrategyFromRegistry as k, getStrategyRegistry as l, listStrategies as m, registerStrategy as n, type AnyClass as o, registerFactory as r };
114
+ interface FlyweightOptions {
115
+ key: (...args: unknown[]) => string;
116
+ }
117
+
118
+ interface ProxyHooks {
119
+ before?: (method: string, args: unknown[]) => void;
120
+ after?: (method: string, result: unknown) => void;
121
+ }
122
+
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 };
@@ -111,4 +111,29 @@ interface HandlerOptions {
111
111
  order: number;
112
112
  }
113
113
 
114
- 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 ParameterDecoratorLogic as P, type StateOptions as S, type TransitionOptions as T, CommandHistory as a, type FieldDecoratorLogic as b, type MethodDecoratorLogic as c, StrategyRegistry as d, createFromFactory as e, defineClassDecorator as f, defineFieldDecorator as g, defineMethodDecorator as h, defineParameterDecorator as i, getFactoryRegistry as j, getStrategyFromRegistry as k, getStrategyRegistry as l, listStrategies as m, registerStrategy as n, type AnyClass as o, registerFactory as r };
114
+ interface FlyweightOptions {
115
+ key: (...args: unknown[]) => string;
116
+ }
117
+
118
+ interface ProxyHooks {
119
+ before?: (method: string, args: unknown[]) => void;
120
+ after?: (method: string, result: unknown) => void;
121
+ }
122
+
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,7 +1,10 @@
1
1
  {
2
2
  "name": "lombok-typescript",
3
- "version": "0.6.0",
4
- "description": "TypeScript decorators for observer, memento, chain-of-responsibility, and iteration.",
3
+ "version": "0.8.0",
4
+ "publishConfig": {
5
+ "registry": "https://registry.npmjs.org"
6
+ },
7
+ "description": "TypeScript decorators for template method, visitor, abstract factory, and more.",
5
8
  "type": "module",
6
9
  "main": "./dist/index.cjs",
7
10
  "module": "./dist/index.js",
@@ -121,9 +124,6 @@
121
124
  "optional": true
122
125
  }
123
126
  },
124
- "publishConfig": {
125
- "registry": "https://registry.npmjs.org"
126
- },
127
127
  "scripts": {
128
128
  "build": "tsup",
129
129
  "build:watch": "tsup --watch",