// Type definitions for React (react-addons-update) 0.14 // Project: http://facebook.github.io/react/ // Definitions by: Asana , AssureSign , Microsoft // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; export = React.__Addons.update; declare module 'react' { interface UpdateSpecCommand { $set?: any; $merge?: {}; $apply?(value: any): any; } interface UpdateSpecPath { [key: string]: UpdateSpec; } type UpdateSpec = number[][] | 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; } }