From 773722b767130ffca49b7b4e7a213797ea0f1b64 Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Wed, 11 Oct 2017 05:48:27 +0200 Subject: [PATCH] docs(DEVELOPER) Add documentation for CordovaFunctionOverride decorator (#2029) --- DEVELOPER.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DEVELOPER.md b/DEVELOPER.md index 18859275a0..ba6e164d60 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -209,4 +209,13 @@ Example: someMethod(): Promise { // 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 { return; } ``` \ No newline at end of file