microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0.1.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ReactTypings/react/react-addons-update.d.ts

35lines · modeblame

d24fea86Joshua Skelton10 years ago1// Type definitions for React v0.14 (react-addons-update)
2// Project: http://facebook.github.io/react/
3// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
4// Definitions: https://github.com/borisyankov/DefinitelyTyped
5
6/// <reference path="react.d.ts" />
7
8declare namespace __React {
9interface UpdateSpecCommand {
10$set?: any;
11$merge?: {};
12$apply?(value: any): any;
13}
14
15interface UpdateSpecPath {
16[key: string]: UpdateSpec;
17}
18
19type UpdateSpec = UpdateSpecCommand | UpdateSpecPath;
20
21interface UpdateArraySpec extends UpdateSpecCommand {
22$push?: any[];
23$unshift?: any[];
24$splice?: any[][];
25}
26
27namespace __Addons {
28export function update(value: any[], spec: UpdateArraySpec): any[];
29export function update(value: {}, spec: UpdateSpec): any;
30}
31}
32
33declare module "react-addons-update" {
34export = __React.__Addons.update;
35}