Skip to content

Commit a9b0243

Browse files
jeffmozpao
authored andcommitted
Make @typechecks static-only
1 parent d93761a commit a9b0243

32 files changed

+83
-30
lines changed

src/core/ReactDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactDOM
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactDOMIDOperations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactDOMIDOperations
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
/*jslint evil: true */

src/core/ReactDOMNodeCache.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Copyright 2013 Facebook, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* @providesModule ReactDOMNodeCache
17+
* @typechecks static-only
18+
*/
19+
20+
"use strict";
21+
22+
var ReactID = require('ReactID');
23+
24+
exports.getNodeByID = ReactID.getNode;
25+
exports.purgeID = ReactID.purgeID;
26+
exports.purgeEntireCache = ReactID.purgeEntireCache;

src/core/ReactEventEmitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactEventEmitter
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactEventTopLevelCallback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactEventTopLevelCallback
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactID.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactID
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactInstanceHandles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactInstanceHandles
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactNativeComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactNativeComponent
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactReconcileTransaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactReconcileTransaction
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

src/core/ReactTextComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
* @providesModule ReactTextComponent
17-
* @typechecks
17+
* @typechecks static-only
1818
*/
1919

2020
"use strict";

0 commit comments

Comments
 (0)