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

import/named: Typescript interface export from *.d.ts file not found #1699

Closed
mtjn opened this issue Mar 25, 2020 · 3 comments
Closed

import/named: Typescript interface export from *.d.ts file not found #1699

mtjn opened this issue Mar 25, 2020 · 3 comments

Comments

@mtjn
Copy link

mtjn commented Mar 25, 2020

import/named reports an error on the code: import { Moment } from "moment";

"Moment not found in 'moment' (import/named)"

This is valid code, typescript correctly parses the imported interface from moment.d.ts

Likely related to: #1282

@ljharb
Copy link
Member

ljharb commented Mar 26, 2020

Although now that import type exists, I'd suggest using that.

@mtjn
Copy link
Author

mtjn commented Mar 26, 2020

Thanks for the tip, I will use that!

@JounQin
Copy link
Collaborator

JounQin commented Jul 19, 2022

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants