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: https://github.com/benmosher/eslint-plugin-import/issues/1282
Although now that import type exists, I'd suggest using that.
Thanks for the tip, I will use that!
Most helpful comment
Although now that
import typeexists, I'd suggest using that.