score:1

Accepted answer

so:

p.s. i admit, that type checking works fine if i remove bracers from the argument store, like: const appcontainer: react.sfc<props> = (store) => ...

yes, this is exactly right! so the solution in your case is a very easy:

const appcontainer = ({ store }: props) => {
  return (
    <provider store={store}>
      <title />
    </provider>
  )
}

this is because you declare your function arguments like in destructive way. if you will choose the non-destructive = (store) => you also can choose you own type-checking solution. it's not any different between both ways. you can choose one of them on you own.

score:0

i think it should be capital o in object i.e. object.

export interface props {
  store: object,
  dispatch(): any,
  getstate(): any,
  subscribe(): any,
  replacereducer(): any
}

Related Query

More Query from same tag