kea-typegen 3.4.1 → 3.4.2
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/CHANGELOG.md +3 -0
- package/dist/package.json +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/form-plugin/lib/form-plugin/src/typegen.js +6 -2
- package/form-plugin/lib/src/types.d.ts +15 -5
- package/form-plugin/src/typegen.ts +0 -1
- package/form-plugin/yarn.lock +1152 -22
- package/package.json +3 -3
- package/samples/pluginLogic.ts +1 -1
- package/samples/pluginLogicType.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kea-typegen",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Generate type definitions for kea logic",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "ts-node ./src/cli/typegen.ts",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"rimraf": "^3.0.2",
|
|
54
54
|
"ts-jest": "^28.0.8",
|
|
55
55
|
"ts-node": "^10.7.0",
|
|
56
|
-
"typescript": "5.
|
|
56
|
+
"typescript": "5.1.6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"typescript": ">=5.
|
|
59
|
+
"typescript": ">=5.1.6"
|
|
60
60
|
},
|
|
61
61
|
"jest": {
|
|
62
62
|
"testPathIgnorePatterns": [
|
package/samples/pluginLogic.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by kea-typegen on
|
|
1
|
+
// Generated by kea-typegen on Thu, 19 Jun 2025 09:28:06 GMT. DO NOT EDIT THIS FILE MANUALLY.
|
|
2
2
|
|
|
3
3
|
import type { Logic, NotReallyHereButImportedBecausePlugin } from 'kea'
|
|
4
4
|
|
|
@@ -136,17 +136,17 @@ export interface pluginLogicType extends Logic {
|
|
|
136
136
|
export interface anotherPluginLogicType extends Logic {
|
|
137
137
|
actionCreators: {
|
|
138
138
|
submitForm: () => {
|
|
139
|
-
type: 'submit form (
|
|
139
|
+
type: 'submit form (anotherPluginLogic)'
|
|
140
140
|
payload: {
|
|
141
141
|
value: boolean
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
actionKeys: {
|
|
146
|
-
'submit form (
|
|
146
|
+
'submit form (anotherPluginLogic)': 'submitForm'
|
|
147
147
|
}
|
|
148
148
|
actionTypes: {
|
|
149
|
-
submitForm: 'submit form (
|
|
149
|
+
submitForm: 'submit form (anotherPluginLogic)'
|
|
150
150
|
}
|
|
151
151
|
actions: {
|
|
152
152
|
submitForm: () => void
|
|
@@ -163,8 +163,8 @@ export interface anotherPluginLogicType extends Logic {
|
|
|
163
163
|
events: {}
|
|
164
164
|
key: undefined
|
|
165
165
|
listeners: {}
|
|
166
|
-
path: ['
|
|
167
|
-
pathString: '
|
|
166
|
+
path: ['anotherPluginLogic']
|
|
167
|
+
pathString: 'anotherPluginLogic'
|
|
168
168
|
props: Record<string, unknown>
|
|
169
169
|
reducer: (
|
|
170
170
|
state: any,
|