Tightening some Image Flow Types

Reviewed By: yungsters

Differential Revision: D7270059

fbshipit-source-id: 3b9727363aeb6910fbbdc613a70d9e8cac97b3b1
This commit is contained in:
Eli White 2018-06-14 19:42:38 -07:00 committed by Facebook Github Bot
parent 0dc86dfd91
commit d904361477
1 changed files with 9 additions and 10 deletions

View File

@ -10,17 +10,16 @@
'use strict'; 'use strict';
// This is to sync with ImageSourcePropTypes.js. // This is to sync with ImageSourcePropTypes.js.
type ImageURISource = $ReadOnly<{| type ImageURISource = $ReadOnly<{|
uri?: string, uri?: ?string,
bundle?: string, bundle?: ?string,
method?: string, method?: ?string,
headers?: Object, headers?: ?Object,
body?: string, body?: ?string,
cache?: 'default' | 'reload' | 'force-cache' | 'only-if-cached', cache?: ?('default' | 'reload' | 'force-cache' | 'only-if-cached'),
width?: number, width?: ?number,
height?: number, height?: ?number,
scale?: number, scale?: ?number,
|}>; |}>;
export type ImageSource = ImageURISource | number | Array<ImageURISource>; export type ImageSource = ImageURISource | number | Array<ImageURISource>;