mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
<google__maps> update departure_time to accept 'now' (#38088)
* adding my name/github link * updating departure_time to accept 'now' * removing myself from "definitions by..."
This commit is contained in:
parent
871e4ab3d1
commit
13d22ea3a5
2
types/google__maps/index.d.ts
vendored
2
types/google__maps/index.d.ts
vendored
@ -575,7 +575,7 @@ export interface DirectionsRequest {
|
||||
* This option is only available if the request contains a valid API key, or a valid Google Maps APIs Premium Plan client ID
|
||||
* and signature. The `departure_time` must be set to the current time or some time in the future. It cannot be in the past.
|
||||
*/
|
||||
departure_time?: Date | number;
|
||||
departure_time?: Date | number | 'now';
|
||||
/**
|
||||
* Specifies the assumptions to use when calculating time in traffic.
|
||||
* This setting affects the value returned in the `duration_in_traffic` field in the response, which contains the predicted time
|
||||
|
||||
Loading…
Reference in New Issue
Block a user