// Type definitions for React v0.14 (react-addons-update) // Project: http://facebook.github.io/react/ // Definitions by: Asana , AssureSign , Microsoft // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// 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; }