scheduledAt option has the wrong type in api.d.ts
Closed this issue · 2 comments
aivanov-noveo commented
Description
scheduledAt
has the Date
type while the sendTransacEmail
expects it to be a strring in RFC-3339 format.
'scheduledAt'?: Date;
Environment
@sendinblue/client v3.2.2
Workaround
To pass scheduledAt
like this:
scheduledAt: scheduledAt as any as Date
to7be commented
I'm also struggling with this. I've tried several different formats, including the function formatRFC3339
of the date-fns
library, to first format and then parse a Date-object which would work.
Thanks for the workaround @aivanov-noveo, this way it works for me.
aayush-sib commented
Hi
We have fixed this in the latest release