Merge pull request #26 from iamolegga/typescript-fix

fix typescript declarations
This commit is contained in:
Bartol Karuza 2019-04-06 11:39:29 +02:00 committed by GitHub
commit bbd158014b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -5,6 +5,7 @@
"version": "1.0.3",
"description": "",
"main": "./js/CameraRoll.js",
"types": "./typings/CameraRoll.d.ts",
"scripts": {
"start": "react-native start",
"test": "yarn validate:eslint && yarn validate:flow && yarn validate:typescript && yarn test:jest",

View File

@ -27,7 +27,7 @@ export interface GetPhotosParams {
after?: string,
groupTypes?: GroupType,
groupName?: string,
assetType?: AssetType
assetType?: AssetType,
mimeTypes?: Array<string>,
}
@ -72,7 +72,7 @@ export interface CameraRollStatic {
/**
* Delete a photo from the camera roll or media library. photos is an array of photo uri's.
*/
deletePhotos: (photos: Array<string>) => void,
deletePhotos: (photos: Array<string>) => void;
/**
* Saves the photo or video to the camera roll or photo library.
@ -85,3 +85,7 @@ export interface CameraRollStatic {
*/
getPhotos: (params: GetPhotosParams) => Promise<PhotoIdentifiersPage>;
}
let CameraRoll: CameraRollStatic;
export default CameraRoll;