File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
packages/local-notifications Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
121
121
success : ( notification ) => {
122
122
onReceived ( JSON . parse ( notification ) ) ;
123
123
} ,
124
- } )
124
+ } ) ,
125
125
) ;
126
126
resolve ( ) ;
127
127
} catch ( ex ) {
@@ -140,7 +140,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
140
140
success : ( notification ) => {
141
141
onReceived ( JSON . parse ( notification ) ) ;
142
142
} ,
143
- } )
143
+ } ) ,
144
144
) ;
145
145
resolve ( ) ;
146
146
} catch ( ex ) {
@@ -295,9 +295,8 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
295
295
}
296
296
}
297
297
298
- private static isAuthorized ( result : Result ) : boolean {
299
- const [ status , _ ] = result ;
300
- return status === 'authorized' ;
298
+ private static isAuthorized ( result : Result < 'notification' > ) : boolean {
299
+ return result === 'authorized' ;
301
300
}
302
301
}
303
302
Original file line number Diff line number Diff line change 46
46
"homepage" : " https://github.com/nativescript/plugins" ,
47
47
"dependencies" : {
48
48
"@nativescript/shared-notification-delegate" : " ~1.0.0" ,
49
- "@nativescript-community/perms" : " ^2. 3.0"
49
+ "@nativescript-community/perms" : " ^3.0.4 "
50
50
}
51
51
}
You can’t perform that action at this time.
0 commit comments