Fix cacheControl property in TypeScript types. (#310)
This commit is contained in:
parent
3b4c6fb23f
commit
7ffc841ed8
|
@ -16,7 +16,7 @@ declare namespace FastImage {
|
||||||
type center = 'center'
|
type center = 'center'
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace cache {
|
namespace cacheControl {
|
||||||
type cacheOnly = 'cacheOnly'
|
type cacheOnly = 'cacheOnly'
|
||||||
type immutable = 'immutable'
|
type immutable = 'immutable'
|
||||||
type web = 'web'
|
type web = 'web'
|
||||||
|
@ -34,9 +34,9 @@ declare namespace FastImage {
|
||||||
FastImage.resizeMode.center
|
FastImage.resizeMode.center
|
||||||
|
|
||||||
export type Cache =
|
export type Cache =
|
||||||
FastImage.cache.cacheOnly |
|
FastImage.cacheControl.cacheOnly |
|
||||||
FastImage.cache.immutable |
|
FastImage.cacheControl.immutable |
|
||||||
FastImage.cache.web
|
FastImage.cacheControl.web
|
||||||
}
|
}
|
||||||
|
|
||||||
export type FastImageSource = {
|
export type FastImageSource = {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'
|
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'
|
||||||
import type { SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes'
|
import type { SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue