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.

Export `IOptions` type from the plugin

See original GitHub issue

Hello!

Thank you for this great plugin!

However, right now, typing declarations are only exporting the plugin function, but not the other useful symbols, like options (i.e. IOptions).

The generated typing declarations are looking like this right now:

declare const typescript: PluginImpl<Partial<IOptions>>;
export default typescript;

As you can see you can’t import IOptions type directly from it. This makes advanced usage of the plugin harder.

export { IOptions } should fix it in the index.ts.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ezolenkocommented, Mar 4, 2020

Sure, committed, could you try using github version directly (point npm at it, you should see 0.26.1 printed during build) and let me know if it does what you expect it to do?

0reactions
ezolenkocommented, May 1, 2022

In 0.27.0 now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export and import WordPress Options - GitHub
Activate the plugin through the 'Plugins' menu in WordPress 3. Navigate to **Tools → Export** and choose "Settings" to export options, or navigate...
Read more >
wp export | WP-CLI Command
Exports WordPress content to a WXR file. Generates one or more WXR files containing authors, terms, posts, comments, and attachments. WXR files do...
Read more >
Building a settings import and export feature - Pippin's Plugins
A feature you will often see large plugins provide is the ability to import and export their settings, making it much easier to...
Read more >
WordPress Export Settings - WP All Import
To change the settings of an existing export, go to Manage Exports › Export Settings. You can change the filtering options, scheduling options,...
Read more >
Export Options - ShapeDiver Help Center
The ShapeDiver plugin comes with several new primitives added to ... The available export options for each supported file type do not always...
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