Enforce empty array providers in arvr/js
Summary: Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D41206042 fbshipit-source-id: 0d6a87fdb693a01a97783f5428111f428a94f80e
This commit is contained in:
Родитель
c84cc4b46c
Коммит
6743d15329
|
@ -68,7 +68,7 @@ export default class AnimatedTransform extends AnimatedWithChildren {
|
|||
}
|
||||
|
||||
__getNativeConfig(): any {
|
||||
const transConfigs = [];
|
||||
const transConfigs: Array<any> = [];
|
||||
|
||||
this._transforms.forEach(transform => {
|
||||
for (const key in transform) {
|
||||
|
|
|
@ -76,7 +76,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
testBadInheritedDefaultProp(): React.MixedElement {
|
||||
const sections = [];
|
||||
const sections: $FlowFixMe = [];
|
||||
return (
|
||||
<SectionList
|
||||
renderItem={renderMyListItem}
|
||||
|
|
|
@ -22,7 +22,7 @@ type Header = [string, string];
|
|||
// Convert FormData headers to arrays, which are easier to consume in
|
||||
// native on Android.
|
||||
function convertHeadersMapToArray(headers: Object): Array<Header> {
|
||||
const headerArray = [];
|
||||
const headerArray: Array<Header> = [];
|
||||
for (const name in headers) {
|
||||
headerArray.push([name, headers[name]]);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче