Skip to content

Commit

Permalink
Update DEVELOPER.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 11, 2016
1 parent 787a027 commit 99ddbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Let's take a look at `getCurrentPosition` first.

```
@Cordova()
static getCurrentPosition(options: GeolocationOptions): Promise<Geoposition> { return }
static getCurrentPosition(options?: GeolocationOptions): Promise<Geoposition> { 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<Geoposition>`.
Expand All @@ -81,7 +81,7 @@ Next, let's look at the `watchPosition` method.
observable: true,
clearFunction: 'clearWatch'
})
static watchPosition(options: GeolocationOptions): Observable<Geoposition> { return }
static watchPosition(options?: GeolocationOptions): Observable<Geoposition> { return }
```

The `@Cordova` decorator has a few more options now.
Expand Down

0 comments on commit 99ddbe3

Please sign in to comment.