moment / luxon

⏱ A library for working with dates and times in JS
https://moment.github.io/luxon
MIT License
15.05k stars 730 forks source link

DurationLike not found in 'luxon' eslintimport/named #1622

Open hpandelo opened 2 months ago

hpandelo commented 2 months ago

Describe the bug With the following import import { DateTime, DurationLike } from 'luxon'; that is used in a type similar to the following:

type MyMethodParams = {
    duration?: DurationLike;
    name: string;
    type: string;
}

I'm receiving an error from ESLint: DurationLike not found in 'luxon'eslintimport/named

To Reproduce Import DurationLike (also some other types)

Actual vs Expected behavior DurationLike should be imported normally, since it's a public/exported resource

Desktop:

image