diff --git a/PhotoLibrary.d.ts b/PhotoLibrary.d.ts index c5f776c7..a4af3981 100644 --- a/PhotoLibrary.d.ts +++ b/PhotoLibrary.d.ts @@ -4,7 +4,7 @@ declare module PhotoLibraryCordova { getLibrary(success: (result: { chunk: LibraryItem[], isLastChunk: boolean }) => void, error: (err: any) => void, options?: GetLibraryOptions): void; - requestAuthorization(success: () => void, error: (err: any) => void): void; + requestAuthorization(success: () => void, error: (err: any) => void, options?: RequestAuthorizationOptions): void; getAlbums(success: (result: AlbumItem[]) => void, error: (err:any) => void): void; @@ -58,6 +58,11 @@ declare module PhotoLibraryCordova { includeAlbumData?: boolean; } + export interface RequestAuthorizationOptions { + read?: boolean; + write?: boolean; + } + export interface GetThumbnailOptions { thumbnailWidth?: number; thumbnailHeight?: number;