From d9043614778fe675ff100123751f59f0620ac312 Mon Sep 17 00:00:00 2001 From: Eli White Date: Thu, 14 Jun 2018 19:42:38 -0700 Subject: [PATCH] Tightening some Image Flow Types Reviewed By: yungsters Differential Revision: D7270059 fbshipit-source-id: 3b9727363aeb6910fbbdc613a70d9e8cac97b3b1 --- Libraries/Image/ImageSource.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Libraries/Image/ImageSource.js b/Libraries/Image/ImageSource.js index 4fdd7f270..8338d5feb 100644 --- a/Libraries/Image/ImageSource.js +++ b/Libraries/Image/ImageSource.js @@ -10,17 +10,16 @@ 'use strict'; // This is to sync with ImageSourcePropTypes.js. - type ImageURISource = $ReadOnly<{| - uri?: string, - bundle?: string, - method?: string, - headers?: Object, - body?: string, - cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached', - width?: number, - height?: number, - scale?: number, + uri?: ?string, + bundle?: ?string, + method?: ?string, + headers?: ?Object, + body?: ?string, + cache?: ?('default' | 'reload' | 'force-cache' | 'only-if-cached'), + width?: ?number, + height?: ?number, + scale?: ?number, |}>; export type ImageSource = ImageURISource | number | Array;