mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
undo
This commit is contained in:
parent
6843177377
commit
4302abd02b
@ -296,10 +296,10 @@ export class Push {
|
||||
@Cordova()
|
||||
static hasPermission(){
|
||||
// This Promise is replaced by one from the @Cordova decorator that wraps
|
||||
// the plugin's callbacks. We provide a dummy one here so TypeScript
|
||||
// knows that the correct return type is Promise, because there's no way
|
||||
// for it to know the return type from a decorator.
|
||||
// See https://github.com/Microsoft/TypeScript/issues/4881
|
||||
// the plugin's callbacks. We provide a dummy one here so TypeScript
|
||||
// knows that the correct return type is Promise, because there's no way
|
||||
// for it to know the return type from a decorator.
|
||||
// See https://github.com/Microsoft/TypeScript/issues/4881
|
||||
return new Promise<{ isEnabled: boolean }>((res, rej) => {});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user