mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-05 20:48:17 +00:00
c909db5b4d
* [react-mobx] scaffold project + migrate to drop5 * [react-mobx] install mobx dependencies * [react-mobx] configure reactive and nonreactive webpart version * [react-mobx] add presentational and container components * [react-mobx] Replace description field with name * [react-mobx] Add mobx store and hook up webpart & components * [react-mobx] update readme * [react-mobx] remove custom tslint.config * [react-mobx] only render the webpart once
36 lines
1000 B
TypeScript
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;
|
|
}
|