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