How should we include addons in typings?
See original GitHub issueThere are two ways, or we could do both:
-
Give typings for all addons on Terminal before they are loaded such that completions work for this:
term.findNext('foo');
We would need to warn in the jsdoc about needing to call loadAddon first for this.
-
Give typings only for the object returned by loadAddon:
const searchAddon = Terminal.loadAddon('search'); searchAddon.findNext('foo');
Or both?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Building Addons in TypeScript
Building addons in TypeScript offers many of the same benefits as building apps that way: it puts an extra tool at your disposal...
Read more >typing-extensions - PyPI
Starting with version 4.0.0, typing_extensions uses Semantic Versioning. The major version is incremented for all backwards-incompatible changes. Therefore, ...
Read more >Typescript declarations file for Node C++ Addon
Now I want to use TypeScript to do the same. I can't find the right combination of .d.ts file and import statement to...
Read more >9 essential VS Code extensions for TypeScript - LogRocket Blog
Use VS Code extensions like TypeScript ESLint, TypeScript Toolbox, and TypeScript Importer to help configure and use TypeScript easily.
Read more >Missing type definitions for Addon-Docs · Issue #8183 - GitHub
Hmmm I'm unsure about how we can export typings for each @storybook/addon-docs/XXXX "sub-packages" as types entry point of @storybook/addon-docs ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What if we:
loadAddon
, in favor of standard import mechanismsterm.attach
,term.search
etc.)Or is this too “loose” for TypeScript?
This is stale