Fix TypeScript types for fallback.

This commit is contained in:
David Narbutovich 2018-09-24 00:12:34 +03:00 committed by Dylan Vann
parent 845ae631d5
commit c265c7a79a
1 changed files with 3 additions and 1 deletions

4
src/index.d.ts vendored
View File

@ -33,7 +33,7 @@ declare namespace FastImage {
FastImage.resizeMode.cover |
FastImage.resizeMode.stretch |
FastImage.resizeMode.center
export type Cache =
FastImage.cache.cacheOnly |
FastImage.cache.immutable |
@ -79,6 +79,7 @@ export interface OnProgressEvent {
export interface FastImageProperties {
source: FastImageSource | number
resizeMode?: FastImage.ResizeMode
fallback?: boolean
onLoadStart?(): void
@ -135,6 +136,7 @@ interface FastImageStatic extends React.ComponentClass<FastImageProperties> {
}
declare var FastImage: FastImageStatic
type FastImage = FastImageStatic
export default FastImage