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'
|
||||
}
|
||||
|
||||
namespace cache {
|
||||
namespace cacheControl {
|
||||
type cacheOnly = 'cacheOnly'
|
||||
type immutable = 'immutable'
|
||||
type web = 'web'
|
||||
|
@ -34,9 +34,9 @@ declare namespace FastImage {
|
|||
FastImage.resizeMode.center
|
||||
|
||||
export type Cache =
|
||||
FastImage.cache.cacheOnly |
|
||||
FastImage.cache.immutable |
|
||||
FastImage.cache.web
|
||||
FastImage.cacheControl.cacheOnly |
|
||||
FastImage.cacheControl.immutable |
|
||||
FastImage.cacheControl.web
|
||||
}
|
||||
|
||||
export type FastImageSource = {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @flow
|
||||
|
||||
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'
|
||||
import type { SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes'
|
||||
|
||||
|
|
Loading…
Reference in New Issue