We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f8dca commit 88f2d9dCopy full SHA for 88f2d9d
src/ParseGeoPoint.ts
@@ -186,7 +186,7 @@ class ParseGeoPoint {
186
* @static
187
* @returns {Promise<Parse.GeoPoint>} User's current location
188
*/
189
- static current(options) {
+ static current(options): Promise<ParseGeoPoint> {
190
return new Promise((resolve, reject) => {
191
navigator.geolocation.getCurrentPosition(location => {
192
resolve(new ParseGeoPoint(location.coords.latitude, location.coords.longitude));
types/ParseGeoPoint.d.ts
@@ -93,6 +93,6 @@ declare class ParseGeoPoint {
93
94
95
96
- static current(options: any): Promise<unknown>;
+ static current(options: any): Promise<ParseGeoPoint>;
97
}
98
export default ParseGeoPoint;
0 commit comments