From 13d22ea3a52f1de40880d93be7d68aa39cc5376b Mon Sep 17 00:00:00 2001 From: Gabe O'Leary Date: Wed, 4 Sep 2019 16:28:39 -0700 Subject: [PATCH] update departure_time to accept 'now' (#38088) * adding my name/github link * updating departure_time to accept 'now' * removing myself from "definitions by..." --- types/google__maps/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/google__maps/index.d.ts b/types/google__maps/index.d.ts index 257dc6ba88..bf3fbbaf36 100644 --- a/types/google__maps/index.d.ts +++ b/types/google__maps/index.d.ts @@ -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