File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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 {
644651interface UnionLoginOptions extends OAuthLoginOptions , UnionOptions { }
645652
646653interface WeappOptions extends UnionOptions {
647- preferUnion : boolean ;
654+ preferUnionId : boolean ;
648655}
649656
650657interface WeappLoginOptions extends OAuthLoginOptions , WeappOptions { }
You can’t perform that action at this time.
0 commit comments