From 8cbc69c128d78c9daddfda6cb7bd1c6cf4869cfe Mon Sep 17 00:00:00 2001 From: Shashi Shekhar Singh Date: Wed, 8 Nov 2023 18:17:23 +0530 Subject: [PATCH] Update type definition of askForScreenCaptureAccess The existing type definition did not have the openPreferences parameter, which exists in the code. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 1a4c705..5a7d90e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,7 +12,7 @@ export function askForMicrophoneAccess(): Promise export function askForPhotosAccess(accessType?: 'add-only' | 'read-write'): Promise export function askForRemindersAccess(): Promise> export function askForSpeechRecognitionAccess(): Promise> -export function askForScreenCaptureAccess(): undefined +export function askForScreenCaptureAccess(openPreferences?: boolean): undefined export function getAuthStatus(authType: AuthType): PermissionType | 'not determined' export type AuthType =