[@types/mocha] always declares global variables, even if they're only available in CLI #69483
Unanswered
danon
asked this question in
Issues with a @types package
Replies: 1 comment
-
Thanks for the discussion about "mocha", some useful links for everyone: Pinging the DT module owners: @kazimanzurrashid, @otiai10, @enlight, @cspotcode, @1999, @strangedev, @nicojs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using mocha in node without CLI, and I don't want to use global values. I like to explicitly import them:
and in that case, global variables are not available (which is good).
Would it be possible to maybe break the types to
@types/mocha-cli
and@types/mocha
? The CLI can have all the global variables, and@types/mocha
would only have the imported ones?I would need a
@types/
package which doesn't declare global variables, because currently my IDE shows incorrect types (seestest
andsuite
in places that doesn't have them).Beta Was this translation helpful? Give feedback.
All reactions