microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
70f7cae4a697f9868d22dfdd08089a2cd2076772

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

35lines · modecode

1// 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 {
9 interface UpdateSpecCommand {
10 $set?: any;
11 $merge?: {};
12 $apply?(value: any): any;
13 }
14
15 interface UpdateSpecPath {
16 [key: string]: UpdateSpec;
17 }
18
19 type UpdateSpec = UpdateSpecCommand | UpdateSpecPath;
20
21 interface UpdateArraySpec extends UpdateSpecCommand {
22 $push?: any[];
23 $unshift?: any[];
24 $splice?: any[][];
25 }
26
27 namespace __Addons {
28 export function update(value: any[], spec: UpdateArraySpec): any[];
29 export function update(value: {}, spec: UpdateSpec): any;
30 }
31}
32
33declare module "react-addons-update" {
34 export = __React.__Addons.update;
35}
36