Trying this code snippet:
const a: Temporal = new Temporal.PlainDate(2024, 2, 1)
Results in the error:
Cannot use namespace 'Temporal' as a type.deno-ts(2709)
What is causing this issue? It seems different from how the Date
object is used in JavaScript:
const b: Date = new Date(2024, 2, 1)