Skip to content

Commit

Permalink
Update type definition of askForScreenCaptureAccess (#68)
Browse files Browse the repository at this point in the history
The existing type definition did not have the openPreferences parameter, which exists in the code.
  • Loading branch information
singhshashi authored Nov 9, 2023
1 parent 3e3d618 commit 43c43b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function askForMicrophoneAccess(): Promise<PermissionType>
export function askForPhotosAccess(accessType?: 'add-only' | 'read-write'): Promise<PermissionType>
export function askForRemindersAccess(): Promise<Omit<PermissionType, 'restricted'>>
export function askForSpeechRecognitionAccess(): Promise<Omit<PermissionType, 'restricted'>>
export function askForScreenCaptureAccess(): undefined
export function askForScreenCaptureAccess(openPreferences?: boolean): undefined
export function getAuthStatus(authType: AuthType): PermissionType | 'not determined'

export type AuthType =
Expand Down

0 comments on commit 43c43b4

Please sign in to comment.