moment: warning and error
description
I use momentjs in my project. There is some questions. momentjsV2.18.1
moment().add("day", 1);
moment().add(1, "day");
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 20 (10 by maintainers)
This is described in the docs:
i.e. use
moment().add(1, "day");
@icambron Following screenshots are from latest VS Code(1.46.0)
I can confirm the same behavior in VS Code 1.39.2:
@icambron I’m afraid it won’t work. When I change the order of declarations the deprecation warnings remain the same, even after IDE restart.
Right click -> Go to -> Declaration
always points to the deprecated format.Deprecated format however gives a warning about type mismatch: