File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ export function openNotificationSettings(): Promise<boolean>;
69
69
export function getTypes ( ) : Permissions [ ] ;
70
70
71
71
export interface MultiResult {
72
- [ k : Permissions | string ] : Status ;
72
+ [ k : Permissions | string ] : IStatus ;
73
73
}
74
- export type Result < T > = T extends any [ ] ? MultipleResult : Status ;
74
+ export type Result < T > = T extends any [ ] ? MultipleResult : IStatus ;
75
75
76
76
export type RequestOptions < T extends Permissions = Permissions > = T extends keyof ObjectPermissions ? ObjectPermissions [ T ] : any ;
77
- export function request < T extends Permissions > ( permission : T , options ?: RequestOptions < T > ) : Promise < Status > ;
77
+ export function request < T extends Permissions > ( permission : T , options ?: RequestOptions < T > ) : Promise < IStatus > ;
78
78
export function request < T extends Partial < ObjectPermissions | ObjectPermissionsRest > > ( permission : T ) : Promise < MultiResult > ;
79
- export function request < T extends string > ( permission : T ) : Promise < Status > ;
79
+ export function request < T extends string > ( permission : T ) : Promise < IStatus > ;
80
80
81
81
export function checkMultiple < T extends Partial < ObjectPermissionsRest > > ( permissions : T ) : Promise < MultiResult > ;
You can’t perform that action at this time.
0 commit comments