Skip to content

Commit

Permalink
changes to d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
viskin committed Feb 20, 2017
1 parent 0b2e6d9 commit cb96f7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PhotoLibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -58,6 +58,11 @@ declare module PhotoLibraryCordova {
includeAlbumData?: boolean;
}

export interface RequestAuthorizationOptions {
read?: boolean;
write?: boolean;
}

export interface GetThumbnailOptions {
thumbnailWidth?: number;
thumbnailHeight?: number;
Expand Down

0 comments on commit cb96f7e

Please sign in to comment.