mirror of
https://github.com/status-im/react-native-image-resizer.git
synced 2025-01-29 16:04:52 +00:00
Fix Flow type default export (#99)
The actual JS module only has a default export of an object with `createResizedImage` function. This PR update the Flow definition to match the usage of the module. This fixes the following flow error: ``` 18: import ImageResizer from 'react-native-image-resizer'; ^^^^^^^^^^^^ Default import from `react-native-image-resizer`. This module has no default export. ```
This commit is contained in:
parent
e7c4ef5473
commit
7b9445743c
@ -6,7 +6,7 @@ declare type ResizedImageInfo = {
|
||||
name?: string
|
||||
};
|
||||
|
||||
declare export function createResizedImage(
|
||||
declare function createResizedImage(
|
||||
uri: string,
|
||||
width: number,
|
||||
height: number,
|
||||
@ -16,3 +16,6 @@ declare export function createResizedImage(
|
||||
outputPath?: string
|
||||
): Promise<ResizedImageInfo>;
|
||||
|
||||
declare export default {
|
||||
createResizedImage: createResizedImage
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user