Skip to content

Commit 88f2d9d

Browse files
committed
Fix types
1 parent 25f8dca commit 88f2d9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ParseGeoPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class ParseGeoPoint {
186186
* @static
187187
* @returns {Promise<Parse.GeoPoint>} User's current location
188188
*/
189-
static current(options) {
189+
static current(options): Promise<ParseGeoPoint> {
190190
return new Promise((resolve, reject) => {
191191
navigator.geolocation.getCurrentPosition(location => {
192192
resolve(new ParseGeoPoint(location.coords.latitude, location.coords.longitude));

types/ParseGeoPoint.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ declare class ParseGeoPoint {
9393
* @static
9494
* @returns {Promise<Parse.GeoPoint>} User's current location
9595
*/
96-
static current(options: any): Promise<unknown>;
96+
static current(options: any): Promise<ParseGeoPoint>;
9797
}
9898
export default ParseGeoPoint;

0 commit comments

Comments
 (0)