Skip to content

Commit fb4b005

Browse files
committed
fix: update TS defs for new photos access
1 parent 0b9bfc2 commit fb4b005

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ const types = [
9090
'location',
9191
'microphone',
9292
'music-library',
93-
'photos',
93+
'photos-add-only',
94+
'photos-read-write',
9495
'reminders',
9596
'speech-recognition',
9697
'screen',

index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function askForFoldersAccess(): Promise<Omit<PermissionType, 'restricted'
99
export function askForFullDiskAccess(): undefined
1010
export function askForInputMonitoringAccess(): Promise<Omit<PermissionType, 'restricted'>>
1111
export function askForMicrophoneAccess(): Promise<PermissionType>
12-
export function askForPhotosAccess(): Promise<PermissionType>
12+
export function askForPhotosAccess(accessType?: 'add-only' | 'read-write'): Promise<PermissionType>
1313
export function askForRemindersAccess(): Promise<Omit<PermissionType, 'restricted'>>
1414
export function askForSpeechRecognitionAccess(): Promise<Omit<PermissionType, 'restricted'>>
1515
export function askForScreenCaptureAccess(): undefined
@@ -26,7 +26,8 @@ export type AuthType =
2626
| 'location'
2727
| 'microphone'
2828
| 'music-library'
29-
| 'photos'
29+
| 'photos-add-only'
30+
| 'photos-read-write'
3031
| 'reminders'
3132
| 'speech-recognition'
3233
| 'screen'

0 commit comments

Comments
 (0)