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:
@@ -1,5 +1,5 @@
|
||||
import { Observable, EventData, Page, Trace } from '@nativescript/core';
|
||||
import { Permissions } from '@nativescript/permissions';
|
||||
import { Permissions, PermissionsType } from '@nativescript/permissions';
|
||||
|
||||
let page: Page;
|
||||
|
||||
@@ -35,7 +35,7 @@ export class PermissionsModel extends Observable {
|
||||
super();
|
||||
}
|
||||
|
||||
async checkPermission(args, multiple?: Array<string>) {
|
||||
async checkPermission(args, multiple?: Array<PermissionsType>) {
|
||||
const perm = args.object.bindingContext.name;
|
||||
try {
|
||||
console.log('checkPermission', perm);
|
||||
|
||||
Reference in New Issue
Block a user