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';
|
'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>;
|
||||||
|
|
Loading…
Reference in New Issue