Kevin Mees 5f77374599 Sample react-redux (#52)
* [react-redux] scaffold project

* [react-redux] install redux dependencies

* [react-redux] install redux typings

* [react-redux] Add redux store and reducers and hook them up with the webpart

* [react-redux] Add presentational and container components

* [react-redux] Hook up webpart lifecycle methods with redux

* [react-redux] configure reactive and non-reactive webpart versions

* [react-redux] Add all the semicolons!

* [react-redux] mark store as private in webpart

* [react-redux] Update README.md

* [react-redux] Fix typo in readme

* [react-redux] only render webpart once
2016-11-10 17:48:10 +02:00

36 lines
1000 B
TypeScript

// Type definitions for React v0.14 (react-addons-update)
// Project: http://facebook.github.io/react/
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="react.d.ts" />
declare namespace __React {
interface UpdateSpecCommand {
$set?: any;
$merge?: {};
$apply?(value: any): any;
}
interface UpdateSpecPath {
[key: string]: UpdateSpec;
}
type UpdateSpec = UpdateSpecCommand | UpdateSpecPath;
interface UpdateArraySpec extends UpdateSpecCommand {
$push?: any[];
$unshift?: any[];
$splice?: any[][];
}
namespace __Addons {
export function update(value: any[], spec: UpdateArraySpec): any[];
export function update(value: {}, spec: UpdateSpec): any;
}
}
declare module "react-addons-update" {
export = __React.__Addons.update;
}