Fix cacheControl property in TypeScript types. (#310)

This commit is contained in:
Dylan Vann 2018-10-14 18:49:30 -04:00 committed by GitHub
parent 3b4c6fb23f
commit 7ffc841ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

8
src/index.d.ts vendored
View File

@ -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 = {

View File

@ -1,4 +1,5 @@
// @flow
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'
import type { SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes'