Merge pull request #26 from iamolegga/typescript-fix
fix typescript declarations
This commit is contained in:
commit
bbd158014b
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue