Current Behavior
When I set the input parameter of the Queue function to a date type and pass in a date to the enqueue function, the type of the parameter is a string.
Input Code
REPL or Repo link if applicable:
export default Queue(
"api/generateRosterQueue", // the path of this API route
async (date: Date) => {
console.log(`Generate roster task executing for date: ${typeof date}`)
}
)
await GenerateRosterQueue.enqueue(new Date())
Expected behavior/code
I expect the tyoeof date to return a Date type, but it returns a string
Bug Report
Current Behavior When I set the input parameter of the Queue function to a date type and pass in a date to the enqueue function, the type of the parameter is a string.
Input Code
Expected behavior/code I expect the
tyoeof date
to return a Date type, but it returns a stringEnvironment
Additional context/Screenshots