Tightening some Image Flow Types
Reviewed By: yungsters Differential Revision: D7270059 fbshipit-source-id: 3b9727363aeb6910fbbdc613a70d9e8cac97b3b1
This commit is contained in:
parent
0dc86dfd91
commit
d904361477
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue