React.Component.contextTypes.
*/
function createValidatorstore context property to its children.
* Usage:
*
* @providesStoreContext(MyStore)
* export class MyClass extends React.Component<P, S> { }
*
*/
export function providesStoreContextstore getter which reads the store context property.
* Usage: class MyComponent extends ComponentGetsStoreContext(MyStore) { }
*/
export function ComponentGetsStoreContextextends React.Component
{ static contextTypes = { store: createValidator(storeClass), }; get store(): Store { return this.context.store; } }; }