File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Type definitions for node-mac-permissions
2
+ // Project: node-mac-permissions
3
+
4
+ export function askForCalendarAccess ( ) : Promise < 'authorized' | 'denied' >
5
+ export function askForContactsAccess ( ) : Promise < 'authorized' | 'denied' >
6
+ export function askForFullDiskAccess ( ) : undefined
7
+ export function askForRemindersAccess ( ) : Promise < 'authorized' | 'denied' >
8
+ export function askForCameraAccess ( ) : Promise < 'authorized' | 'denied' | 'restricted' >
9
+ export function askForMicrophoneAccess ( ) : Promise < 'authorized' | 'denied' | 'restricted' >
10
+ export function askForPhotosAccess ( ) : Promise < 'authorized' | 'denied' | 'restricted' >
11
+ export function askForSpeechRecognitionAccess ( ) : Promise < 'authorized' | 'denied' >
12
+ export function askForScreenCaptureAccess ( ) : undefined
13
+ export function askForAccessibilityAccess ( ) : undefined
14
+ export function getAuthStatus ( authType : AuthType ) : PermissionType
15
+
16
+ export type AuthType =
17
+ | 'contacts'
18
+ | 'calendar'
19
+ | 'reminders'
20
+ | 'full-disk-access'
21
+ | 'camera'
22
+ | 'photos'
23
+ | 'speech-recognition'
24
+ | 'microphone'
25
+ | 'accessibility'
26
+ | 'location'
27
+ | 'screen'
28
+
29
+ export type PermissionType = 'not determined' | 'denied' | 'authorized' | 'restricted'
Original file line number Diff line number Diff line change 3
3
"version" : " 2.1.3" ,
4
4
"description" : " A native node module to manage system permissions on macOS" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"build" : " node-gyp rebuild" ,
8
9
"clean" : " node-gyp clean" ,
You can’t perform that action at this time.
0 commit comments