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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kea-typegen",
3
- "version": "3.4.1",
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.0.4"
56
+ "typescript": "5.1.6"
57
57
  },
58
58
  "peerDependencies": {
59
- "typescript": ">=5.0.4"
59
+ "typescript": ">=5.1.6"
60
60
  },
61
61
  "jest": {
62
62
  "testPathIgnorePatterns": [
@@ -20,7 +20,7 @@ export const pluginLogic = kea<pluginLogicType>({
20
20
  })
21
21
 
22
22
  export const anotherPluginLogic = kea<anotherPluginLogicType>({
23
- path: ['pluginLogic'],
23
+ path: ['anotherPluginLogic'],
24
24
  form: ({ values }) => ({
25
25
  default: {
26
26
  name: 'john',
@@ -1,4 +1,4 @@
1
- // Generated by kea-typegen on Fri, 10 Jan 2025 11:14:06 GMT. DO NOT EDIT THIS FILE MANUALLY.
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 (pluginLogic)'
139
+ type: 'submit form (anotherPluginLogic)'
140
140
  payload: {
141
141
  value: boolean
142
142
  }
143
143
  }
144
144
  }
145
145
  actionKeys: {
146
- 'submit form (pluginLogic)': 'submitForm'
146
+ 'submit form (anotherPluginLogic)': 'submitForm'
147
147
  }
148
148
  actionTypes: {
149
- submitForm: 'submit form (pluginLogic)'
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: ['pluginLogic']
167
- pathString: 'pluginLogic'
166
+ path: ['anotherPluginLogic']
167
+ pathString: 'anotherPluginLogic'
168
168
  props: Record<string, unknown>
169
169
  reducer: (
170
170
  state: any,