Skip to content

Commit

Permalink
Fixed TypeScript definition for missing requestPermissions (#316)
Browse files Browse the repository at this point in the history
Closes #315
  • Loading branch information
wmcmahan authored Aug 2, 2020
1 parent d8eeb7b commit 21b6ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class ReactNativeCalendarEvents {
/** Get calendar authorization status. */
static checkPermissions(): Promise<AuthorizationStatus>;
/** Request calendar authorization. Authorization must be granted before accessing calendar events. */
static checkPermissions(): Promise<AuthorizationStatus>;
static requestPermissions(): Promise<AuthorizationStatus>;

/** Finds all the calendars on the device. */
static findCalendars(): Promise<Calendar[]>;
Expand Down

0 comments on commit 21b6ca3

Please sign in to comment.