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';
// 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<ImageURISource>;