Skip to content

Commit 43c43b4

Browse files
authored
Update type definition of askForScreenCaptureAccess (#68)
The existing type definition did not have the openPreferences parameter, which exists in the code.
1 parent 3e3d618 commit 43c43b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function askForMicrophoneAccess(): Promise<PermissionType>
1212
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'>>
15-
export function askForScreenCaptureAccess(): undefined
15+
export function askForScreenCaptureAccess(openPreferences?: boolean): undefined
1616
export function getAuthStatus(authType: AuthType): PermissionType | 'not determined'
1717

1818
export type AuthType =

0 commit comments

Comments
 (0)