Comparing version 2.2.0-beta.11 to 2.2.0-rc.1
@@ -51,7 +51,6 @@ import { Store, Action, Reducer } from 'redux'; | ||
inputs: LogicInput[]; | ||
(component: AnyComponent): FunctionComponent; | ||
(props: LogicType['props']): BuiltLogic; | ||
(): BuiltLogic; | ||
<T extends LogicType['props'] | AnyComponent>(props: T): T extends LogicType['props'] ? LogicType & BuiltLogicAdditions : FunctionComponent; | ||
(): LogicType & BuiltLogicAdditions; | ||
wrap: (Component: AnyComponent) => KeaComponent; | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => BuiltLogic; | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => LogicType & BuiltLogicAdditions; | ||
mount: (callback?: any) => () => void; | ||
@@ -58,0 +57,0 @@ extend: (extendedInput: LogicInput) => LogicWrapper; |
@@ -50,7 +50,6 @@ import { Reducer, Store, Action as ReduxAction } from 'redux'; | ||
inputs: LogicInput[]; | ||
(component: AnyComponent): FunctionComponent; | ||
(props: LogicType['props']): BuiltLogic; | ||
(): BuiltLogic; | ||
<T extends LogicType['props'] | AnyComponent>(props: T): T extends LogicType['props'] ? LogicType & BuiltLogicAdditions : FunctionComponent; | ||
(): LogicType & BuiltLogicAdditions; | ||
wrap: (Component: AnyComponent) => KeaComponent; | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => BuiltLogic; | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => LogicType & BuiltLogicAdditions; | ||
mount: (callback?: any) => () => void; | ||
@@ -57,0 +56,0 @@ extend: (extendedInput: LogicInput) => LogicWrapper; |
{ | ||
"name": "kea", | ||
"version": "2.2.0-beta.11", | ||
"version": "2.2.0-rc.1", | ||
"description": "Smart front-end architecture", | ||
@@ -5,0 +5,0 @@ "author": "Marius Andra", |
@@ -148,3 +148,3 @@ import { getContext } from '../context/index' | ||
wrapper.build = (props = {}, autoConnectInListener = true) => | ||
getBuiltLogic(wrapper.inputs, props, wrapper, autoConnectInListener) | ||
getBuiltLogic(wrapper.inputs, props, wrapper, autoConnectInListener) as LogicType & BuiltLogicAdditions | ||
wrapper.mount = (callback) => wrapper.build().mount(callback) | ||
@@ -151,0 +151,0 @@ wrapper.extend = (extendedInput) => { |
@@ -55,7 +55,8 @@ import { Reducer, Store, Action as ReduxAction } from 'redux' | ||
inputs: LogicInput[] | ||
(component: AnyComponent): FunctionComponent | ||
(props: LogicType['props']): BuiltLogic | ||
(): BuiltLogic | ||
<T extends LogicType['props'] | AnyComponent>(props: T): T extends LogicType['props'] | ||
? LogicType & BuiltLogicAdditions | ||
: FunctionComponent | ||
(): LogicType & BuiltLogicAdditions | ||
wrap: (Component: AnyComponent) => KeaComponent | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => BuiltLogic | ||
build: (props?: LogicType['props'], autoConnectInListener?: boolean) => LogicType & BuiltLogicAdditions | ||
mount: (callback?: any) => () => void | ||
@@ -62,0 +63,0 @@ extend: (extendedInput: LogicInput) => LogicWrapper |
479691
13994