Skip to content

Commit

Permalink
Kea TypeGen 0.0.31 (#1297)
Browse files Browse the repository at this point in the history
* update to kea-typegen that runs through prettier

* update logic type files

* remove posthog-js yalc package regression

* upgrade to 0.0.32 that fixes error with string literals in defaults

* prettier wants to reformat things
  • Loading branch information
mariusandra authored Jul 29, 2020
1 parent 1efc1d8 commit f2b8d54
Show file tree
Hide file tree
Showing 23 changed files with 443 additions and 242 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"printWidth": 120
"printWidth": 120,
}
28 changes: 14 additions & 14 deletions frontend/src/lib/components/Annotations/annotationsLogicType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export interface annotationsLogicType {
payload: any
}
loadAnnotationsSuccess: (
annotations: never[]
annotations: undefined[]
) => {
type: 'load annotations success (lib.components.Annotations.annotationsLogic)'
payload: {
annotations: never[]
annotations: undefined[]
}
}
loadAnnotationsFailure: (
Expand Down Expand Up @@ -138,11 +138,11 @@ export interface annotationsLogicType {
payload: any
}
loadAnnotationsSuccess: (
annotations: never[]
annotations: undefined[]
) => {
type: 'load annotations success (lib.components.Annotations.annotationsLogic)'
payload: {
annotations: never[]
annotations: undefined[]
}
}
loadAnnotationsFailure: (
Expand All @@ -168,38 +168,38 @@ export interface annotationsLogicType {
action: () => any,
fullState: any
) => {
annotations: never[]
annotations: undefined[]
annotationsLoading: boolean
annotationsToCreate: never[]
annotationsToCreate: undefined[]
diffType: string
}
reducerOptions: any
reducers: {
annotations: (state: never[], action: any, fullState: any) => never[]
annotations: (state: undefined[], action: any, fullState: any) => undefined[]
annotationsLoading: (state: boolean, action: any, fullState: any) => boolean
annotationsToCreate: (state: never[], action: any, fullState: any) => never[]
annotationsToCreate: (state: undefined[], action: any, fullState: any) => undefined[]
diffType: (state: string, action: any, fullState: any) => string
}
selector: (
state: any
) => {
annotations: never[]
annotations: undefined[]
annotationsLoading: boolean
annotationsToCreate: never[]
annotationsToCreate: undefined[]
diffType: string
}
selectors: {
annotations: (state: any, props: any) => never[]
annotations: (state: any, props: any) => undefined[]
annotationsLoading: (state: any, props: any) => boolean
annotationsToCreate: (state: any, props: any) => never[]
annotationsToCreate: (state: any, props: any) => undefined[]
diffType: (state: any, props: any) => string
annotationsList: (state: any, props: any) => any[]
groupedAnnotations: (state: any, props: any) => Dictionary<any[]>
}
values: {
annotations: never[]
annotations: undefined[]
annotationsLoading: boolean
annotationsToCreate: never[]
annotationsToCreate: undefined[]
diffType: string
annotationsList: any[]
groupedAnnotations: Dictionary<any[]>
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/lib/components/AppEditorLink/appUrlsLogicType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export interface appUrlsLogicType {
payload: any
}
loadSuggestionsSuccess: (
suggestions: never[]
suggestions: undefined[]
) => {
type: 'load suggestions success (lib.components.AppEditorLink.appUrlsLogic)'
payload: {
suggestions: never[]
suggestions: undefined[]
}
}
loadSuggestionsFailure: (
Expand Down Expand Up @@ -98,11 +98,11 @@ export interface appUrlsLogicType {
payload: any
}
loadSuggestionsSuccess: (
suggestions: never[]
suggestions: undefined[]
) => {
type: 'load suggestions success (lib.components.AppEditorLink.appUrlsLogic)'
payload: {
suggestions: never[]
suggestions: undefined[]
}
}
loadSuggestionsFailure: (
Expand All @@ -128,30 +128,30 @@ export interface appUrlsLogicType {
action: () => any,
fullState: any
) => {
suggestions: never[]
suggestions: undefined[]
suggestionsLoading: boolean
appUrls: string[]
}
reducerOptions: any
reducers: {
suggestions: (state: never[], action: any, fullState: any) => never[]
suggestions: (state: undefined[], action: any, fullState: any) => undefined[]
suggestionsLoading: (state: boolean, action: any, fullState: any) => boolean
appUrls: (state: string[], action: any, fullState: any) => string[]
}
selector: (
state: any
) => {
suggestions: never[]
suggestions: undefined[]
suggestionsLoading: boolean
appUrls: string[]
}
selectors: {
suggestions: (state: any, props: any) => never[]
suggestions: (state: any, props: any) => undefined[]
suggestionsLoading: (state: any, props: any) => boolean
appUrls: (state: any, props: any) => string[]
}
values: {
suggestions: never[]
suggestions: undefined[]
suggestionsLoading: boolean
appUrls: string[]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,34 +178,34 @@ export interface propertyFilterLogicType {
) => {
personProperties: any
personPropertiesLoading: boolean
eventProperties: never[]
eventProperties: undefined[]
filters: any
}
reducerOptions: any
reducers: {
personProperties: (state: any, action: any, fullState: any) => any
personPropertiesLoading: (state: boolean, action: any, fullState: any) => boolean
eventProperties: (state: never[], action: any, fullState: any) => never[]
eventProperties: (state: undefined[], action: any, fullState: any) => undefined[]
filters: (state: any, action: any, fullState: any) => any
}
selector: (
state: any
) => {
personProperties: any
personPropertiesLoading: boolean
eventProperties: never[]
eventProperties: undefined[]
filters: any
}
selectors: {
personProperties: (state: any, props: any) => any
personPropertiesLoading: (state: any, props: any) => boolean
eventProperties: (state: any, props: any) => never[]
eventProperties: (state: any, props: any) => undefined[]
filters: (state: any, props: any) => any
}
values: {
personProperties: any
personPropertiesLoading: boolean
eventProperties: never[]
eventProperties: undefined[]
filters: any
}
_isKea: true
Expand Down
24 changes: 12 additions & 12 deletions frontend/src/models/actionsModelType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export interface actionsModelType {
payload: any
}
loadActionsSuccess: (
actions: never[]
actions: undefined[]
) => {
type: 'load actions success (models.actionsModel)'
payload: {
actions: never[]
actions: undefined[]
}
}
loadActionsFailure: (
Expand Down Expand Up @@ -40,11 +40,11 @@ export interface actionsModelType {
payload: any
}
loadActionsSuccess: (
actions: never[]
actions: undefined[]
) => {
type: 'load actions success (models.actionsModel)'
payload: {
actions: never[]
actions: undefined[]
}
}
loadActionsFailure: (
Expand All @@ -70,32 +70,32 @@ export interface actionsModelType {
action: () => any,
fullState: any
) => {
actions: never[]
actions: undefined[]
actionsLoading: boolean
}
reducerOptions: any
reducers: {
actions: (state: never[], action: any, fullState: any) => never[]
actions: (state: undefined[], action: any, fullState: any) => undefined[]
actionsLoading: (state: boolean, action: any, fullState: any) => boolean
}
selector: (
state: any
) => {
actions: never[]
actions: undefined[]
actionsLoading: boolean
}
selectors: {
actions: (state: any, props: any) => never[]
actions: (state: any, props: any) => undefined[]
actionsLoading: (state: any, props: any) => boolean
actionsGrouped: (state: any, props: any) => { label: string; options: never[] }[]
actionsGrouped: (state: any, props: any) => { label: string; options: any[] }[]
}
values: {
actions: never[]
actions: undefined[]
actionsLoading: boolean
actionsGrouped: { label: string; options: never[] }[]
actionsGrouped: { label: string; options: any[] }[]
}
_isKea: true
__keaTypeGenInternalSelectorTypes: {
actionsGrouped: (arg1: any) => { label: string; options: never[] }[]
actionsGrouped: (arg1: any) => { label: string; options: any[] }[]
}
}
23 changes: 14 additions & 9 deletions frontend/src/models/annotationsModelType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export interface annotationsModelType {
payload: any
}
loadGlobalAnnotationsSuccess: (
globalAnnotations: never[]
globalAnnotations: undefined[]
) => {
type: 'load global annotations success (models.annotationsModel)'
payload: {
globalAnnotations: never[]
globalAnnotations: undefined[]
}
}
loadGlobalAnnotationsFailure: (
Expand Down Expand Up @@ -72,11 +72,11 @@ export interface annotationsModelType {
payload: any
}
loadGlobalAnnotationsSuccess: (
globalAnnotations: never[]
globalAnnotations: undefined[]
) => {
type: 'load global annotations success (models.annotationsModel)'
payload: {
globalAnnotations: never[]
globalAnnotations: undefined[]
}
}
loadGlobalAnnotationsFailure: (
Expand All @@ -102,27 +102,32 @@ export interface annotationsModelType {
action: () => any,
fullState: any
) => {
globalAnnotations: never[]
globalAnnotations: undefined[]
globalAnnotationsLoading: boolean
}
reducerOptions: any
reducers: {
globalAnnotations: (state: never[], action: any, fullState: any) => never[]
globalAnnotations: (state: undefined[], action: any, fullState: any) => undefined[]
globalAnnotationsLoading: (state: boolean, action: any, fullState: any) => boolean
}
selector: (
state: any
) => {
globalAnnotations: never[]
globalAnnotations: undefined[]
globalAnnotationsLoading: boolean
}
selectors: {
globalAnnotations: (state: any, props: any) => never[]
globalAnnotations: (state: any, props: any) => undefined[]
globalAnnotationsLoading: (state: any, props: any) => boolean
activeGlobalAnnotations: (state: any, props: any) => any
}
values: {
globalAnnotations: never[]
globalAnnotations: undefined[]
globalAnnotationsLoading: boolean
activeGlobalAnnotations: any
}
_isKea: true
__keaTypeGenInternalSelectorTypes: {
activeGlobalAnnotations: (arg1: any) => any
}
}
Loading

0 comments on commit f2b8d54

Please sign in to comment.