diff --git a/DEVELOPER.md b/DEVELOPER.md index b96e5ad91b..84170d432c 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -64,7 +64,7 @@ Let's take a look at `getCurrentPosition` first. ``` @Cordova() - static getCurrentPosition(options: GeolocationOptions): Promise { return } + static getCurrentPosition(options?: GeolocationOptions): Promise { return } ``` It's just a stub. The `return` is only there to keep the TypeScript type-checker from complaining since we indicate the `getCurrentPosition` returns a `Promise`. @@ -81,7 +81,7 @@ Next, let's look at the `watchPosition` method. observable: true, clearFunction: 'clearWatch' }) - static watchPosition(options: GeolocationOptions): Observable { return } + static watchPosition(options?: GeolocationOptions): Observable { return } ``` The `@Cordova` decorator has a few more options now.