feat: permissionresult return type for all

This commit is contained in:
Nathan Walker
2022-07-13 11:53:23 -07:00
parent 144394f3ea
commit 3db79a5294
4 changed files with 14 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ export interface PermissionRationale {
buttonNegative?: string;
buttonNeutral?: string;
}
export type PermissionCheckOptions = { type: 'always' | null | undefined };
export type PermissionCheckOptions = { type: 'always' | 'none' | null | undefined };
export type PermissionRequestOptions = PermissionCheckOptions & { rationale?: PermissionRationale };
export type PermissionResult = { [k: PermissionsType]: { status: PermissionStatus; nativePermission: Array<string> } };