mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
[Actions-on-google] add Coordinates interface for long latitude (#23084)
* [actions-on-google] Add coordinates interface with lat and long The coordinates property typed as object, which forced users to cast coordinates manually. With the Coordinates interface that is not necessary anymore. * Fix missing semi colons
This commit is contained in:
14
types/actions-on-google/assistant-app.d.ts
vendored
14
types/actions-on-google/assistant-app.d.ts
vendored
@@ -263,8 +263,8 @@ export interface UserName {
|
||||
* User's permissioned device location.
|
||||
*/
|
||||
export interface DeviceLocation {
|
||||
/** {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
|
||||
coordinates: object;
|
||||
/** Coordinates: {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
|
||||
coordinates: Coordinates;
|
||||
/** Full, formatted street address. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */
|
||||
address: string;
|
||||
/** Zip code. Requested with SupportedPermissions.DEVICE_COARSE_LOCATION. */
|
||||
@@ -273,6 +273,16 @@ export interface DeviceLocation {
|
||||
city: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Coordinates containing latitude and longitude
|
||||
*/
|
||||
export interface Coordinates {
|
||||
/** Latitude coordinate. */
|
||||
latitude: number;
|
||||
/** Longitude coordinate. */
|
||||
longitude: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* User object.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user