mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: permissionresult return type for all
This commit is contained in:
2
packages/permissions/index.d.ts
vendored
2
packages/permissions/index.d.ts
vendored
@@ -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> } };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user