Add annotations to unannotated variable declarations

Summary: Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D36114983

fbshipit-source-id: 2622e13ba19a372592967670b7d615688c0e9fd6
This commit is contained in:
Sam Zhou
2022-05-04 14:17:28 -07:00
committed by Facebook GitHub Bot
parent 2596b2f695
commit 7e7cf24200
@@ -15,7 +15,7 @@ const {DynamicColorIOS, PlatformColor, StyleSheet, Text, View} = ReactNative;
function PlatformColorsExample() {
function createTable() {
let colors = [];
let colors: Array<{color: $Call<typeof PlatformColor>, label: string}> = [];
if (Platform.OS === 'ios') {
colors = [
// https://developer.apple.com/documentation/uikit/uicolor/ui_element_colors