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:
Pieter Vanderwerff 2022-11-10 18:52:53 -08:00 коммит произвёл Facebook GitHub Bot
Родитель c84cc4b46c
Коммит 6743d15329
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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]]);
}