Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hpandelo opened this issue May 6, 2024 · 0 comments
Open

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

hpandelo opened this issue May 6, 2024 · 0 comments

Comments

@hpandelo
Copy link

hpandelo commented May 6, 2024

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:

  • OS: Win11 + WSL (Ubuntu 22.04.3 LTS)
  • NodeJS v16 - v18 - v20
  • Luxon version: 3.3.0 - 3.4.4 & @types/luxon 3.3.0 - 3.4.2
  • Your timezone: "America/New_York"

image

@hpandelo hpandelo changed the title DurationLike not found in 'luxon'eslintimport/named DurationLike not found in 'luxon' eslintimport/named May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant