Skip to content

Commit

Permalink
Add annotations to unannotated variable declarations
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D36114983

fbshipit-source-id: 2622e13ba19a372592967670b7d615688c0e9fd6
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed May 4, 2022
1 parent 2596b2f commit 7e7cf24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e7cf24

Please sign in to comment.