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.
- package/README.md +24 -6
- package/dist/cli/index.cjs +157 -5
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +157 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/codegen/index.cjs +157 -5
- package/dist/codegen/index.cjs.map +1 -1
- package/dist/codegen/index.js +157 -5
- package/dist/codegen/index.js.map +1 -1
- package/dist/legacy/index.cjs +241 -0
- package/dist/legacy/index.cjs.map +1 -1
- package/dist/legacy/index.d.cts +24 -3
- package/dist/legacy/index.d.ts +24 -3
- package/dist/legacy/index.js +232 -1
- package/dist/legacy/index.js.map +1 -1
- package/dist/stage3/index.cjs +257 -1
- package/dist/stage3/index.cjs.map +1 -1
- package/dist/stage3/index.d.cts +24 -3
- package/dist/stage3/index.d.ts +24 -3
- package/dist/stage3/index.js +248 -2
- package/dist/stage3/index.js.map +1 -1
- package/dist/{chain-of-responsibility-CQ7votcC.d.cts → visitor-B5ByGIWE.d.cts} +26 -1
- package/dist/{chain-of-responsibility-Dwsaoe4x.d.ts → visitor-BqARKwCX.d.ts} +26 -1
- package/package.json +5 -5
|
@@ -111,4 +111,29 @@ interface HandlerOptions {
|
|
|
111
111
|
order: number;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
|
|
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
|
-
|
|
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.
|
|
4
|
-
"
|
|
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",
|