Skip to content

Commit aa978d3

Browse files
committed
Merge branch 'master' of github.com:leancloud/javascript-sdk
2 parents 1fb2a57 + 7d44557 commit aa978d3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

storage.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,14 @@ export class GeoPoint extends BaseObject {
209209
latitude: number;
210210
longitude: number;
211211

212-
constructor(arg1?: any, arg2?: any);
212+
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();
213220

214221
static current(options?: AuthOptions): Promise<GeoPoint>;
215222
radiansTo(point: GeoPoint): number;
@@ -644,7 +651,7 @@ interface UnionOptions {
644651
interface UnionLoginOptions extends OAuthLoginOptions, UnionOptions {}
645652

646653
interface WeappOptions extends UnionOptions {
647-
preferUnion: boolean;
654+
preferUnionId: boolean;
648655
}
649656

650657
interface WeappLoginOptions extends OAuthLoginOptions, WeappOptions {}

0 commit comments

Comments
 (0)