Making ImageURISource exact

Reviewed By: yungsters

Differential Revision: D7984204

fbshipit-source-id: ccd2627b72da5c97f046c895652fdf7cc0b3db40
This commit is contained in:
Eli White 2018-05-12 23:10:55 -07:00 committed by Facebook Github Bot
parent 0fe72579be
commit a9a612bfb6
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
// This is to sync with ImageSourcePropTypes.js.
type ImageURISource = {
type ImageURISource = $ReadOnly<{|
uri?: string,
bundle?: string,
method?: string,
@ -21,6 +21,6 @@ type ImageURISource = {
width?: number,
height?: number,
scale?: number,
};
|}>;
export type ImageSource = ImageURISource | number | Array<ImageURISource>;