question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

typing info not available to extensions by default

See original GitHub issue

I noticed that if an extension has Appium as a dev dep (as it should), the typing information is incomplete. Specifically, @appium/types is not also a dev dep of the extension–and even if it is–the definition of Driver is incomplete due to a missing type-fest dependency.

In practice, something like this does not elicit type information about BaseDriver:

import {BaseDriver} from 'appium/driver';

export class MyDriver extends BaseDriver {
  // ...
}

Probably makes sense to add @appium/types as a prod dep of appium, and a few external typing modules as prod deps of @appium/types (type-fest, @types/express, @types/npmlog, etc.).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
boneskullcommented, Jul 6, 2022

I think we can leave them as they are. but npm 6 won’t be supported for a dev env.

0reactions
boneskullcommented, Jul 8, 2022

closed via f384d5360d446b30211757d5d5552c534071e14e

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set the default program for opening files without an ...
With the command line: assoc .="No_Extension" ftype "No_Extension"="C:\path\to\my editor.exe" "%1". Restart the computer for the changes to take effect.
Read more >
Change Extensions settings in Safari on Mac - Apple Support
In the Safari app on your Mac, use Extensions settings to change how you use extensions installed on your Mac. To change these...
Read more >
Reset Chrome settings to default - Google Support
On your computer, open Chrome. · At the top right, click More More and then Settings. On Chromebook, Linux and Mac: Click Reset...
Read more >
typing-extensions - PyPI
TypedDict does not store runtime information about which (if any) keys are non-required in Python 3.8, and does not honor the total keyword...
Read more >
Common file name extensions in Windows - Microsoft Support
For example, the docx extension tells your computer that Microsoft Word can open the file and to display a Word icon when you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found