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 f760acd commit 7d44557Copy full SHA for 7d44557
storage.d.ts
@@ -209,7 +209,14 @@ export class GeoPoint extends BaseObject {
209
latitude: number;
210
longitude: number;
211
212
- constructor(arg1?: any, arg2?: any);
+ constructor(other: GeoPoint);
213
+ // -90.0 <= latitude <= 90.0, and -180.0 <= longitude <= 180.0,
214
+ // but TypeScript does not support refinement types yet (Microsoft/TypeScript#7599),
215
+ // so we just specify number here.
216
+ constructor(lat: number, lon: number);
217
+ constructor(latLon: [number, number]);
218
+ constructor(latLonObj: { latitude: number; longitude: number });
219
+ constructor();
220
221
static current(options?: AuthOptions): Promise<GeoPoint>;
222
radiansTo(point: GeoPoint): number;
0 commit comments