Open siberry opened 3 months ago
@siberry I saw this as well, do you happen to be using ES6 modules?
import DateTime from "luxon";
// or import * as DateTime from "luxon";
//requires you to write DateTime.Datetime.now()
import { DateTime } from "luxon";
//requires you to write DateTime.now()
Describe the bug I am using Luxon
DateTime
with Typescript and am having no other type errors except for when usingDateTime.now()
I am getting the type errorProperty 'now' does not exist on type 'typeof DateTime'.
To Reproduce When using Typescript:
Actual vs Expected behavior
DateTime.now
would not throw a type errorDesktop (please complete the following information):