Fix return type of withJSX (used to be any)
This commit is contained in:
parent
4b601f93cb
commit
45f0cb76d3
@ -94,7 +94,9 @@ export class TestUtils {
|
|||||||
return self
|
return self
|
||||||
}
|
}
|
||||||
|
|
||||||
const self = {
|
const self: ISelf<
|
||||||
|
Props, typeof store, typeof Component, CreateJSX
|
||||||
|
> = {
|
||||||
render,
|
render,
|
||||||
store,
|
store,
|
||||||
Component,
|
Component,
|
||||||
@ -107,3 +109,11 @@ export class TestUtils {
|
|||||||
return {withState, withComponent}
|
return {withState, withComponent}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface ISelf<Props, Store, Component, CreateJSX> {
|
||||||
|
render: (props: Props) => ReturnType<TestUtils['render']>
|
||||||
|
store: Store
|
||||||
|
Component: Component
|
||||||
|
withJSX: (localCreateJSX: CreateJSX)
|
||||||
|
=> ISelf<Props, Store, Component, CreateJSX>
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user