mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
docs(DEVELOPER) Add documentation for CordovaFunctionOverride decorator (#2029)
This commit is contained in:
parent
447aa56e3c
commit
773722b767
@ -210,3 +210,12 @@ someMethod(): Promise<any> {
|
|||||||
// anything here will only run if the plugin is available
|
// anything here will only run if the plugin is available
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### CordovaFunctionOverride
|
||||||
|
Wrap a stub function in a call to a Cordova plugin, checking if both Cordova and the required plugin are installed.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```ts
|
||||||
|
@CordovaFunctionOverride()
|
||||||
|
someMethod(): Observable<any> { return; }
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user