From 43c43b4b4e5ed4573d2c87167bb1d0622e445a8f Mon Sep 17 00:00:00 2001 From: Shashi Shekhar Singh Date: Fri, 10 Nov 2023 00:15:58 +0530 Subject: [PATCH] Update type definition of askForScreenCaptureAccess (#68) 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 =