Skip to content

Commit 13d22ea

Browse files
golearyamcasey
authored andcommitted
<google__maps> update departure_time to accept 'now' (DefinitelyTyped#38088)
* adding my name/github link * updating departure_time to accept 'now' * removing myself from "definitions by..."
1 parent 871e4ab commit 13d22ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/google__maps/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export interface DirectionsRequest {
575575
* This option is only available if the request contains a valid API key, or a valid Google Maps APIs Premium Plan client ID
576576
* and signature. The `departure_time` must be set to the current time or some time in the future. It cannot be in the past.
577577
*/
578-
departure_time?: Date | number;
578+
departure_time?: Date | number | 'now';
579579
/**
580580
* Specifies the assumptions to use when calculating time in traffic.
581581
* This setting affects the value returned in the `duration_in_traffic` field in the response, which contains the predicted time

0 commit comments

Comments
 (0)